mirror of
https://github.com/ansible/awx.git
synced 2026-09-04 19:08:30 -02:30
Fix bug where SCM inventory did not have a collections destination (#3795)
* update inventory path to be in tmp project clone * copy project folder for inventory scm launch type * Optionally accept inventory collection paths from ansible.cfg
This commit is contained in:
committed by
Ryan Petrello
parent
fca9245536
commit
acba5306c6
@@ -264,6 +264,7 @@ def test_inventory_update_injected_content(this_kind, script_or_plugin, inventor
|
||||
assert envvars.pop('ANSIBLE_INVENTORY_ENABLED') == ('auto' if use_plugin else 'script')
|
||||
set_files = bool(os.getenv("MAKE_INVENTORY_REFERENCE_FILES", 'false').lower()[0] not in ['f', '0'])
|
||||
env, content = read_content(private_data_dir, envvars, inventory_update)
|
||||
env.pop('ANSIBLE_COLLECTIONS_PATHS', None) # collection paths not relevant to this test
|
||||
base_dir = os.path.join(DATA, script_or_plugin)
|
||||
if not os.path.exists(base_dir):
|
||||
os.mkdir(base_dir)
|
||||
|
||||
Reference in New Issue
Block a user