We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c5a9b commit 08d2ab7Copy full SHA for 08d2ab7
changelogs/fragments/124-template-ensure-tags.yml
@@ -0,0 +1,2 @@
1
+bugfixes:
2
+ - Ensure tags are applied when creating or updating a template (https://github.com/ngine-io/ansible-collection-cloudstack/pull/154).
plugins/modules/template.py
@@ -458,6 +458,10 @@ def present_template(self):
458
template = self.create_template()
459
else:
460
self.fail_json(msg="one of the following is required on state=present: url, vm")
461
+
462
+ if template:
463
+ template = self.ensure_tags(resource=template, resource_type="Template")
464
465
return template
466
467
def create_template(self):
0 commit comments