removed tabs and fixed formatting
This commit is contained in:
parent
24e8428a7b
commit
c2dcf62aee
1 changed files with 1 additions and 2 deletions
|
@ -905,7 +905,7 @@ class PyVmomiHelper(object):
|
|||
clonespec_kwargs['customization'].nicSettingMap = adaptermaps
|
||||
clonespec_kwargs['customization'].globalIPSettings = globalip
|
||||
clonespec_kwargs['customization'].identity = ident
|
||||
|
||||
|
||||
clonespec = vim.vm.CloneSpec(**clonespec_kwargs)
|
||||
task = template.Clone(folder=destfolder, name=self.params['name'], spec=clonespec)
|
||||
self.wait_for_task(task)
|
||||
|
@ -928,7 +928,6 @@ class PyVmomiHelper(object):
|
|||
self.wait_for_vm_ip(vm)
|
||||
vm_facts = self.gather_facts(vm)
|
||||
return ({'changed': True, 'failed': False, 'instance': vm_facts})
|
||||
|
||||
|
||||
def wait_for_task(self, task):
|
||||
# https://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.Task.html
|
||||
|
|
Loading…
Reference in a new issue