1
0
Fork 0
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:
aperigault 2017-02-12 04:46:58 +01:00 committed by jctanner
parent 87aa59af79
commit 98d841b324

View file

@ -1170,8 +1170,7 @@ class PyVmomiHelper(object):
# Mark VM as Template # Mark VM as Template
if self.params['is_template']: if self.params['is_template']:
task = self.current_vm_obj.MarkAsTemplate() self.current_vm_obj.MarkAsTemplate()
self.wait_for_task(task)
change_applied = True change_applied = True
vm_facts = self.gather_facts(self.current_vm_obj) vm_facts = self.gather_facts(self.current_vm_obj)