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
pull/20715/head
aperigault 8 years ago committed by jctanner
parent 87aa59af79
commit 98d841b324

@ -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…
Cancel
Save