mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use the group-d1 moId instead of i8ln based names to identify the root folder. (#31077)
Addresses #29043
This commit is contained in:
parent
5f22b4f8ad
commit
32cf69c00a
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ def compile_folder_path_for_object(vobj):
|
||||||
thisobj = vobj
|
thisobj = vobj
|
||||||
while hasattr(thisobj, 'parent'):
|
while hasattr(thisobj, 'parent'):
|
||||||
thisobj = thisobj.parent
|
thisobj = thisobj.parent
|
||||||
if thisobj.name == 'Datacenters':
|
if thisobj._moId == 'group-d1':
|
||||||
break
|
break
|
||||||
if isinstance(thisobj, vim.Folder):
|
if isinstance(thisobj, vim.Folder):
|
||||||
paths.append(thisobj.name)
|
paths.append(thisobj.name)
|
||||||
|
|
Loading…
Reference in a new issue