Skip to content

Commit

Permalink
Fix for aws_kms_info with external/custom key store keys
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaWill committed Nov 27, 2020
1 parent 60a4758 commit ca0c14e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/modules/aws_kms_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,11 @@ def get_key_details(connection, module, key_id, tokens=None):
exception=traceback.format_exc(),
**camel_dict_to_snake_dict(e.response))
result['aliases'] = aliases.get(result['KeyId'], [])
result['enable_key_rotation'] = get_enable_key_rotation_with_backoff(connection, key_id)

if result['Origin'] == 'AWS_KMS':
result['enable_key_rotation'] = get_enable_key_rotation_with_backoff(connection, key_id)
else:
result['enable_key_rotation'] = None

if module.params.get('pending_deletion'):
return camel_dict_to_snake_dict(result)
Expand Down

0 comments on commit ca0c14e

Please sign in to comment.