From 7e011fc730002e864269afc42c184cde1140add8 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Mon, 18 Oct 2021 11:24:09 +0200 Subject: [PATCH] route53_health_check - add tagging support (#765) route53_health_check - add tagging support SUMMARY add tagging support to route53_health_check ISSUE TYPE Feature Pull Request COMPONENT NAME route53_health_check ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: None This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/324801611f014a0b8fd9ed4d0b3154eb3b56c41c --- plugins/module_utils/route53.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/module_utils/route53.py b/plugins/module_utils/route53.py index 3d21d8b0802..3e2940a5311 100644 --- a/plugins/module_utils/route53.py +++ b/plugins/module_utils/route53.py @@ -16,6 +16,9 @@ def manage_tags(module, client, resource_type, resource_id, new_tags, purge_tags): + if new_tags is None: + return False + old_tags = get_tags(module, client, resource_type, resource_id) tags_to_set, tags_to_delete = compare_aws_tags(old_tags, new_tags, purge_tags=purge_tags)