Skip to content

Commit 9c79d2b

Browse files
Revert "Add interactive configuration to exec provider."
This reverts commit e0dfc6b.
1 parent e0dfc6b commit 9c79d2b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kubernetes/base/config/exec_provider.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ def __init__(self, exec_config, cwd):
5757
self.cwd = cwd or None
5858

5959
def run(self, previous_response=None):
60-
is_interactive = sys.stdout.isatty()
6160
kubernetes_exec_info = {
6261
'apiVersion': self.api_version,
6362
'kind': 'ExecCredential',
6463
'spec': {
65-
'interactive': is_interactive
64+
'interactive': sys.stdout.isatty()
6665
}
6766
}
6867
if previous_response:
@@ -71,8 +70,7 @@ def run(self, previous_response=None):
7170
process = subprocess.Popen(
7271
self.args,
7372
stdout=subprocess.PIPE,
74-
stderr=sys.stderr when is_interactive else subprocess.PIPE,
75-
stdin=sys.stdin when is_interactive else None,
73+
stderr=subprocess.PIPE,
7674
cwd=self.cwd,
7775
env=self.env,
7876
universal_newlines=True)

0 commit comments

Comments
 (0)