parent
0d9392a3bc
commit
fbec2ecaa8
1 changed files with 4 additions and 2 deletions
|
@ -641,8 +641,10 @@ class PyVmomiHelper(object):
|
||||||
if not isinstance(vobj.parent, vim.Folder):
|
if not isinstance(vobj.parent, vim.Folder):
|
||||||
continue
|
continue
|
||||||
if self.compile_folder_path_for_object(vobj) == searchpath:
|
if self.compile_folder_path_for_object(vobj) == searchpath:
|
||||||
self.current_vm_obj = vobj
|
# Match by name
|
||||||
return vobj
|
if vobj.config.name == name:
|
||||||
|
self.current_vm_obj = vobj
|
||||||
|
return vobj
|
||||||
|
|
||||||
if name_match:
|
if name_match:
|
||||||
if name_match == 'first':
|
if name_match == 'first':
|
||||||
|
|
Loading…
Reference in a new issue