mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #13977 from john-westcott-iv/awxkit_import_fix
Skip constructed_inventory endpoint in awxkit import
This commit is contained in:
commit
ed1983bd8c
@ -404,6 +404,11 @@ class ApiV2(base.Base):
|
||||
|
||||
for resource in self._dependent_resources():
|
||||
endpoint = getattr(self, resource)
|
||||
# The /api/v2/constructed_inventories endpoint is for the UI but will register as an Inventory endpoint causing import issues, so skip it
|
||||
if endpoint == '/api/v2/constructed_inventories/':
|
||||
log.debug("Ignoring /api/v2/constructed_inventories/ endpoint.")
|
||||
continue
|
||||
|
||||
# Load up existing objects, so that we can try to update or link to them
|
||||
self._cache.get_page(endpoint)
|
||||
imported = self._import_list(endpoint, data.get(resource) or [])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user