Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude /run/host-services When Using Docker Desktop on MacOS #1293

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
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
Loading