boto is expecting that we pass it unicode strings.
The secret_key parameter especially can contain non-ascii characters and will throw an error if such a string is passed as a byte str. Potential fix for #13303
This commit is contained in:
parent
ba4e571029
commit
30094912eb
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,10 @@ def get_aws_connection_info(module, boto3=False):
|
|||
if validate_certs and HAS_LOOSE_VERSION and LooseVersion(boto.Version) >= LooseVersion("2.6.0"):
|
||||
boto_params['validate_certs'] = validate_certs
|
||||
|
||||
for param, value in boto_params.items():
|
||||
if isinstance(value, str):
|
||||
boto_params[param] = unicode(value, 'utf-8', 'strict')
|
||||
|
||||
return region, ec2_url, boto_params
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue