aws_kms tags fix (#53088)

* Fix TagName and TagValue in aws_kms

Fixes #53061

* Improve test suite to check for tags

Also fixed some obvious failures, need to run the test suite from time
to time!
This commit is contained in:
Will Thames
2019-03-01 04:54:18 +10:00
committed by Sloane Hertel
parent 5d8f307116
commit 91eee48f1b
2 changed files with 5 additions and 4 deletions

View File

@@ -666,7 +666,7 @@ def update_key(connection, module, key):
def create_key(connection, module):
params = dict(BypassPolicyLockoutSafetyCheck=False,
Tags=ansible_dict_to_boto3_tag_list(module.params['tags']),
Tags=ansible_dict_to_boto3_tag_list(module.params['tags'], tag_name_key_name='TagKey', tag_value_key_name='TagValue'),
KeyUsage='ENCRYPT_DECRYPT',
Origin='AWS_KMS')
if module.params.get('description'):