- Fixed error handling on aws_kms (#58690)
While alias creation failes, this PR fixes the requirement of passing 2 arguments for the `fail_json_aws` method.
This commit is contained in:
parent
9808ffecc7
commit
89be328a29
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ def update_key(connection, module, key):
|
|||
connection.create_alias(KeyId=key_id, AliasName=alias)
|
||||
changed = True
|
||||
except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
|
||||
module.fail_json_aws(msg="Failed create key alias")
|
||||
module.fail_json_aws(e, msg="Failed create key alias")
|
||||
|
||||
if key['key_state'] == 'PendingDeletion':
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue