MCPcopy Create free account
hub / github.com/aws/aws-cli / set_default_checksum_algorithm

Function set_default_checksum_algorithm

awscli/s3transfer/utils.py:823–827  ·  view source on GitHub ↗

Set the default algorithm if not specified by the user.

(extra_args)

Source from the content-addressed store, hash-verified

821
822
823def set_default_checksum_algorithm(extra_args):
824 """Set the default algorithm if not specified by the user."""
825 if any(checksum in extra_args for checksum in FULL_OBJECT_CHECKSUM_ARGS):
826 return
827 extra_args.setdefault("ChecksumAlgorithm", DEFAULT_CHECKSUM_ALGORITHM)

Calls

no outgoing calls

Tested by 1