Skip to content

Commit b0667c7

Browse files
committed
template: fix missing tags handling
1 parent 52fcebc commit b0667c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/modules/template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ def present_template(self):
458458
template = self.create_template()
459459
else:
460460
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+
461465
return template
462466

463467
def create_template(self):

0 commit comments

Comments
 (0)