Skip to content

Commit

Permalink
fix defaults for container opts with roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrews committed Nov 14, 2024
1 parent 3a9946f commit 630fc50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ansible_runner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from ansible_runner import output
from ansible_runner import cleanup
from ansible_runner._internal._dump_artifacts import dump_artifact
from ansible_runner.defaults import default_process_isolation_executable
from ansible_runner.utils import Bunch, register_for_cleanup
from ansible_runner.utils.capacity import get_cpu_count, get_mem_in_bytes, ensure_uuid
from ansible_runner.utils.importlib_compat import importlib_metadata
Expand Down Expand Up @@ -884,8 +885,8 @@ def main(sys_args=None):
"project_dir": vargs.get('project_dir'),
"artifact_dir": vargs.get('artifact_dir'),
"roles_path": [vargs.get('roles_path')] if vargs.get('roles_path') else None,
"process_isolation": vargs.get('process_isolation'),
"process_isolation_executable": vargs.get('process_isolation_executable'),
"process_isolation": bool(vargs.get('process_isolation')),
"process_isolation_executable": vargs.get('process_isolation_executable') or default_process_isolation_executable,
"process_isolation_path": vargs.get('process_isolation_path'),
"process_isolation_hide_paths": vargs.get('process_isolation_hide_paths'),
"process_isolation_show_paths": vargs.get('process_isolation_show_paths'),
Expand Down

0 comments on commit 630fc50

Please sign in to comment.