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: Do not match simply by folder (#19823)

This fixes #19077
This commit is contained in:
Dag Wieers 2017-01-04 10:26:29 +01:00 committed by John R Barker
parent 0d9392a3bc
commit fbec2ecaa8

View file

@ -641,6 +641,8 @@ class PyVmomiHelper(object):
if not isinstance(vobj.parent, vim.Folder):
continue
if self.compile_folder_path_for_object(vobj) == searchpath:
# Match by name
if vobj.config.name == name:
self.current_vm_obj = vobj
return vobj