diff --git a/awscli/customizations/cloudtrail/validation.py b/awscli/customizations/cloudtrail/validation.py index aabce6c70f43..3d9666d11615 100644 --- a/awscli/customizations/cloudtrail/validation.py +++ b/awscli/customizations/cloudtrail/validation.py @@ -562,8 +562,8 @@ def validate(self, bucket, key, public_key, digest_data, inflated_digest): signature_bytes = binascii.unhexlify(digest_data['_signature']) result = public_key.verify( - signature_algorithm=RSASignatureAlgorithm.PKCS1_5_SHA256, - digest=hashlib.sha256(to_sign).digest(), + signature_algorithm=RSASignatureAlgorithm.PKCS1_5_SHA256, + digest=hashlib.sha256(to_sign).digest(), signature=signature_bytes ) if not result: diff --git a/awscli/customizations/cloudtrail/verifyqueryresults.py b/awscli/customizations/cloudtrail/verifyqueryresults.py index ba23329f234d..ca97f199b32e 100644 --- a/awscli/customizations/cloudtrail/verifyqueryresults.py +++ b/awscli/customizations/cloudtrail/verifyqueryresults.py @@ -250,7 +250,7 @@ class CloudTrailVerifyQueryResult(BasicCommand): CloudTrail delivered them. .. note:: - For verify export file from S3, this command requires that the user or + For verify export file from S3, this command requires that the user or role executing the command has permission to call GetObject, and GetBucketLocation for the bucket that store the export file. """