mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
vmware_guest: Fix undefine variable in rename feature (#20855)
* vmware_guest: Fix undefine variable in rename feature * vmare_guest: We can't wait_for_task because MarkAsTemplate return None
This commit is contained in:
@@ -1170,8 +1170,7 @@ class PyVmomiHelper(object):
|
||||
|
||||
# Mark VM as Template
|
||||
if self.params['is_template']:
|
||||
task = self.current_vm_obj.MarkAsTemplate()
|
||||
self.wait_for_task(task)
|
||||
self.current_vm_obj.MarkAsTemplate()
|
||||
change_applied = True
|
||||
|
||||
vm_facts = self.gather_facts(self.current_vm_obj)
|
||||
|
||||
Reference in New Issue
Block a user