Skip to content

Commit

Permalink
Use the group-d1 moId instead of i8ln based names to identify the roo…
Browse files Browse the repository at this point in the history
…t folder. (ansible#31077)

Addresses ansible#29043
  • Loading branch information
jctanner authored Sep 29, 2017
1 parent 5f22b4f commit 32cf69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def compile_folder_path_for_object(vobj):
thisobj = vobj
while hasattr(thisobj, 'parent'):
thisobj = thisobj.parent
if thisobj.name == 'Datacenters':
if thisobj._moId == 'group-d1':
break
if isinstance(thisobj, vim.Folder):
paths.append(thisobj.name)
Expand Down

0 comments on commit 32cf69c

Please sign in to comment.