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/4420/head
aperigault 2017-02-12 04:46:58 +01:00 committed by jctanner
parent 87aa59af79
commit 98d841b324
1 changed files with 1 additions and 2 deletions

View File

@ -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)