Skip to content

Commit

Permalink
Adding tags to the azure_rm_appgateway module. (#1373)
Browse files Browse the repository at this point in the history
* Adding tags to the azure_rm_appgateway module.

* Removing unnecessary tags from module_arg_spec.

* Separate conditional for tag update.

* Missing parenthesis.

* Moving conditional under another.
  • Loading branch information
jmighion authored Feb 1, 2024
1 parent f855fed commit e6b9f49
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/modules/azure_rm_appgateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,8 @@ def exec_module(self, **kwargs):
self.parameters["web_application_firewall_configuration"] = kwargs[key]
elif key == "enable_http2":
self.parameters["enable_http2"] = kwargs[key]
elif key == "tags":
self.parameters["tags"] = kwargs[key]

response = None

Expand Down Expand Up @@ -2296,6 +2298,11 @@ def exec_module(self, **kwargs):
else:
self.to_do = Actions.NoAction

update_tags, new_tags = self.update_tags(old_response['tags'])
if update_tags:
self.to_do = Actions.Update
self.parameters["tags"] = new_tags

if (self.to_do == Actions.Create) or (self.to_do == Actions.Update):
self.log("Need to Create / Update the Application Gateway instance")

Expand Down

0 comments on commit e6b9f49

Please sign in to comment.