mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
87aa59af79
commit
98d841b324
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue