File tree 1 file changed +6
-1
lines changed
python/client/cortex/binary
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ def run():
25
25
Runs the CLI from terminal.
26
26
"""
27
27
try :
28
- process = subprocess .run ([get_cli_path ()] + sys .argv [1 :], cwd = os .getcwd ())
28
+ 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 )
29
32
except KeyboardInterrupt :
30
33
sys .exit (130 ) # Ctrl + C
31
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
+ if "AWS_VPC_K8S_CNI_LOG_FILE" not in env :
58
+ env ["AWS_VPC_K8S_CNI_LOG_FILE" ] = "/dev/null"
54
59
process = subprocess .Popen (
55
60
[get_cli_path ()] + args ,
56
61
stderr = subprocess .PIPE ,
You can’t perform that action at this time.
0 commit comments