Skip to content

Commit

Permalink
Fix for aws_kms_info with external/custom key store keys (ansible-col…
Browse files Browse the repository at this point in the history
…lections#311)

* Fix for aws_kms_info with external/custom key store keys
* Added changelog fragment
  • Loading branch information
PandaWill authored Nov 28, 2020
1 parent 224aee8 commit 9bad65c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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 9bad65c

Please sign in to comment.