diff options
author | Jeff Bradberry <jeff.bradberry@gmail.com> | 2020-12-10 21:35:50 +0100 |
---|---|---|
committer | Jeff Bradberry <jeff.bradberry@gmail.com> | 2021-01-08 20:32:33 +0100 |
commit | a3723db35728bc642ccc5626441ec391c7fbc237 (patch) | |
tree | 607dc2886802dcfe30ae78fcaddf6512090a0712 /awxkit | |
parent | Merge pull request #9044 from kdelee/awx_silent_delete_conflict (diff) | |
download | awx-a3723db35728bc642ccc5626441ec391c7fbc237.tar.xz awx-a3723db35728bc642ccc5626441ec391c7fbc237.zip |
Do not drop inventories marked as has_inventory_sources
Diffstat (limited to 'awxkit')
-rw-r--r-- | awxkit/awxkit/api/pages/api.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/awxkit/awxkit/api/pages/api.py b/awxkit/awxkit/api/pages/api.py index a4566d3015..3209232352 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -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 |