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 4edb883d9 [DATALAB-2551]: changed how console command is executed
4edb883d9 is described below
commit 4edb883d94191d0d30851615e3872ece5dad8234
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 25 16:00:41 2022 +0300
[DATALAB-2551]: changed how console command is executed
---
infrastructure-provisioning/terraform/bin/datalab.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/terraform/bin/datalab.py
b/infrastructure-provisioning/terraform/bin/datalab.py
index ff6c9f361..969b3885f 100644
--- a/infrastructure-provisioning/terraform/bin/datalab.py
+++ b/infrastructure-provisioning/terraform/bin/datalab.py
@@ -191,9 +191,10 @@ class Console:
Returns:
str: command result
"""
- process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT,
- universal_newlines=True)
+ #process = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE,
+ # stderr=subprocess.STDOUT,
+ # universal_newlines=True)
+ process = subprocess.run(command, shell=True, check=True)
while True:
nextline = process.stdout.readline()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]