From 334be9eb25eac7e25748c5583633b016a67ee2b2 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 21 Apr 2021 10:14:40 -0400 Subject: [PATCH] Use durable switch from container to host path --- awx/main/tests/functional/test_inventory_source_injectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/functional/test_inventory_source_injectors.py b/awx/main/tests/functional/test_inventory_source_injectors.py index 6e75bf2078..5ab319aa75 100644 --- a/awx/main/tests/functional/test_inventory_source_injectors.py +++ b/awx/main/tests/functional/test_inventory_source_injectors.py @@ -111,7 +111,7 @@ def read_content(private_data_dir, raw_env, inventory_update): continue # Ansible runner abs_file_path = os.path.join(private_data_dir, filename) file_aliases[abs_file_path] = filename - runner_path = os.path.join('/runner', os.path.basename(abs_file_path)) + runner_path = abs_file_path.replace(private_data_dir, '/runner') # host path to container path if runner_path in inverse_env: referenced_paths.add(abs_file_path) alias = 'file_reference'