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
3 changes: 2 additions & 1 deletion src/ansible_runner/config/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import logging
import os
import re
import sys
import stat
import tempfile
import shutil
Expand Down Expand Up @@ -495,7 +496,7 @@ def wrap_args_for_containerization(self,
new_args = [self.process_isolation_executable]
new_args.extend(['run', '--rm'])

if self.runner_mode == 'pexpect' or getattr(self, 'input_fd', False):
if self.runner_mode == 'pexpect' or self.runner_mode == "subprocess" and sys.stdout.isatty():
new_args.extend(['--tty'])

new_args.append('--interactive')
Expand Down