You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/15 13:52:40 UTC
[incubator-datalab] 01/02: [DATALAB-2091]: changed how subprocess
exitcode is obtained
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 930eb877f8b8aceb38d3706505a3ffc26ff9bc0b
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 15 14:57:38 2021 +0200
[DATALAB-2091]: changed how subprocess exitcode is obtained
---
infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
index 461b3b4..562871e 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
@@ -150,7 +150,7 @@ if __name__ == "__main__":
try:
subprocess.run("~/scripts/{}.py {}".format('create_ssh_user', params), shell=True)
- if subprocess.CompletedProcess.returncode != 0:
+ if subprocess.returncode != 0:
raise Exception
except:
traceback.print_exc()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org