Fetch projects in folder based on projectID instead of name

This commit is contained in:
kkr16 2021-02-28 22:23:44 -05:00
parent d99f2567b4
commit 7590058e95

View file

@ -518,7 +518,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
if 'projects' in projects_response: if 'projects' in projects_response:
for item in projects_response.get('projects'): for item in projects_response.get('projects'):
projects.append(item['name']) projects.append(item['projectId'])
return projects return projects
def parse(self, inventory, loader, path, cache=True): def parse(self, inventory, loader, path, cache=True):