One more encoding

This commit is contained in:
Joseph Hall 2017-10-13 10:04:50 -06:00
parent 0e8b325667
commit bbd9db4d00
No known key found for this signature in database
GPG Key ID: AE3016C3D03111C4

View File

@ -278,7 +278,7 @@ def sig4(method, endpoint, params, prov_dict,
algorithm,
amzdate,
credential_scope,
hashlib.sha256(canonical_request).hexdigest()
hashlib.sha256(canonical_request.encode(__salt_system_encoding__)).hexdigest()
))
# Create the signing key using the function defined above.