From dfa098b8eff64840c760ef21747682e91ce93094 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Mon, 4 Oct 2021 19:09:07 +0200 Subject: [PATCH] Add changelog fragment Signed-off-by: Alina Buzachis --- changelogs/fragments/524-ec2_vpc_nat_gateway-tagging.yml | 2 ++ plugins/modules/ec2_vpc_nat_gateway.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/524-ec2_vpc_nat_gateway-tagging.yml diff --git a/changelogs/fragments/524-ec2_vpc_nat_gateway-tagging.yml b/changelogs/fragments/524-ec2_vpc_nat_gateway-tagging.yml new file mode 100644 index 00000000000..1172f39ab8c --- /dev/null +++ b/changelogs/fragments/524-ec2_vpc_nat_gateway-tagging.yml @@ -0,0 +1,2 @@ +minor_changes: + - ec2_vpc_nat_gateway - use module_util helper for tagging (https://github.com/ansible-collections/amazon.aws/pull/524). diff --git a/plugins/modules/ec2_vpc_nat_gateway.py b/plugins/modules/ec2_vpc_nat_gateway.py index f5b5acfe8a0..b9ac2846e8f 100644 --- a/plugins/modules/ec2_vpc_nat_gateway.py +++ b/plugins/modules/ec2_vpc_nat_gateway.py @@ -729,7 +729,7 @@ def pre_create(client, module, subnet_id, tags, purge_tags, allocation_id=None, results = get_nat_gateways(client, module, subnet_id=subnet_id, nat_gateway_id=results['nat_gateway_id'])[0] - results['tags'] = boto3_tag_list_to_ansible_dict(results['tags']) + results['tags'] = boto3_tag_list_to_ansible_dict(results['tags']) if changed: return changed, msg, results