We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d647b0d commit 51c18dfCopy full SHA for 51c18df
python/client/cortex/binary/__init__.py
@@ -25,7 +25,10 @@ def run():
25
Runs the CLI from terminal.
26
"""
27
try:
28
- process = subprocess.run([get_cli_path()] + sys.argv[1:], cwd=os.getcwd())
+ env = os.environ.copy()
29
+ if "AWS_VPC_K8S_CNI_LOG_FILE" not in env:
30
+ env["AWS_VPC_K8S_CNI_LOG_FILE"] = "/dev/null"
31
+ process = subprocess.run([get_cli_path()] + sys.argv[1:], cwd=os.getcwd(), env=env)
32
except KeyboardInterrupt:
33
sys.exit(130) # Ctrl + C
34
sys.exit(process.returncode)
@@ -51,6 +54,8 @@ def run_cli(
51
54
52
55
env = os.environ.copy()
53
56
env["CORTEX_CLI_INVOKER"] = "python"
57
58
59
process = subprocess.Popen(
60
[get_cli_path()] + args,
61
stderr=subprocess.PIPE,
0 commit comments