From eca4897a088f70475799c1d90803f9f3568f619b Mon Sep 17 00:00:00 2001 From: James Tanner Date: Sun, 1 Oct 2017 18:21:58 -0400 Subject: [PATCH] Include the top level folder for esxi in the break condition --- lib/ansible/module_utils/vmware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/vmware.py b/lib/ansible/module_utils/vmware.py index 85f6de2f3b2..02062c3a438 100644 --- a/lib/ansible/module_utils/vmware.py +++ b/lib/ansible/module_utils/vmware.py @@ -239,7 +239,7 @@ def compile_folder_path_for_object(vobj): moid = thisobj._moId except AttributeError: moid = None - if moid == 'group-d1': + if moid in ['group-d1', 'ha-folder-root']: break if isinstance(thisobj, vim.Folder): paths.append(thisobj.name)