mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Do not drop inventories marked as has_inventory_sources
This commit is contained in:
parent
aa87a99441
commit
a3723db357
@ -83,9 +83,6 @@ class ApiV2(base.Base):
|
||||
if _page.json.get('managed_by_tower'):
|
||||
log.debug("%s is managed by Tower, skipping.", _page.endpoint)
|
||||
return None
|
||||
# Drop any hosts, groups, or inventories that were pulled in programmatically by an inventory source.
|
||||
if _page.json.get('has_inventory_sources'):
|
||||
return None
|
||||
if post_fields is None: # Deprecated endpoint or insufficient permissions
|
||||
log.error("Object export failed: %s", _page.endpoint)
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user