This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2551
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2551 by this push:
new 0cc45c24f [DATALAB-2551]: changed how console command is executed
0cc45c24f is described below
commit 0cc45c24f3412ad7c56b09bd3b07612d6e781538
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 25 16:05:38 2022 +0300
[DATALAB-2551]: changed how console command is executed
---
infrastructure-provisioning/terraform/bin/datalab.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/infrastructure-provisioning/terraform/bin/datalab.py
b/infrastructure-provisioning/terraform/bin/datalab.py
index 969b3885f..939a18ff2 100644
--- a/infrastructure-provisioning/terraform/bin/datalab.py
+++ b/infrastructure-provisioning/terraform/bin/datalab.py
@@ -191,10 +191,9 @@ class Console:
Returns:
str: command result
"""
- #process = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE,
- # stderr=subprocess.STDOUT,
- # universal_newlines=True)
- process = subprocess.run(command, shell=True, check=True)
+ process = subprocess.run(command, shell=True, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT,
+ universal_newlines=True)
while True:
nextline = process.stdout.readline()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]