Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/ansible_runner/config/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,14 @@ def _update_volume_mount_paths(self,
dst_mount_path: str | None = None,
labels: str | None = None
) -> None:
if src_mount_path is None:
logger.debug("Source volume mount path was not provided")
return

if src_mount_path is None or not os.path.exists(src_mount_path):
logger.debug("Source volume mount path does not exist: %s", src_mount_path)
if not os.path.exists(src_mount_path) and not (
self.containerized and self.process_isolation_executable == "docker" and os.path.abspath(src_mount_path).startswith("/run/host-services")
):
logger.debug("Source volume mount path does not exit {0}".format(src_mount_path))
return

# ensure source is abs
Expand Down