Skip to content

Commit

Permalink
manually modify purge_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Nov 18, 2022
1 parent 2e07168 commit d215048
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/route53_health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ def main():
request_interval_in = module.params.get('request_interval')
health_check_name = module.params.get('health_check_name')
tags = module.params.get('tags')
purge_tags = module.params.get('purge_tags')

# Default port
if port_in is None:
Expand Down Expand Up @@ -633,7 +634,7 @@ def main():
if module.params.get('use_unique_names'):
existing_checks_with_name = get_existing_checks_with_name()
if tags is None:
module.params['purge_tags'] = False
purge_tags = False
tags = {}
tags['Name'] = health_check_name

Expand All @@ -649,7 +650,7 @@ def main():

if check_id:
changed |= manage_tags(module, client, 'healthcheck', check_id,
tags, module.params.get('purge_tags'))
tags, purge_tags)

health_check = describe_health_check(id=check_id)
health_check['action'] = action
Expand Down

0 comments on commit d215048

Please sign in to comment.