mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Skip constructed_inventory endpoint in awxkit import
This commit is contained in:
parent
85e7189ee3
commit
ba7f97f84b
@ -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