Skip to content

Commit

Permalink
Fix unit test - test_prepare_run_command_with_containerization
Browse files Browse the repository at this point in the history
  • Loading branch information
demonpig committed Jan 13, 2025
1 parent 6bf9a19 commit 05df03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansible_runner/config/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def _update_volume_mount_paths(self,

# ensure source is abs
src_path = os.path.abspath(os.path.expanduser(os.path.expandvars(src_mount_path)))
if os.path.exists(src_mount_path):
if os.path.exists(src_path):
debug(f"Source volume mount path does not exist: {src_mount_path}")
if os.path.isfile(src_path):
debug(f"Source volume mount path '{src_path}' is a file, will resolve to parent directory: {os.path.dirname(src_path)}")
Expand Down

0 comments on commit 05df03e

Please sign in to comment.