mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #9046 from jbradberry/export-inventory-source-inventories
Do not drop inventories marked as has_inventory_sources Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
c7b51176a4
@ -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