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
The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
new 90c3eb3 [DATALAB-2091]: changed how cron is added
90c3eb3 is described below
commit 90c3eb3a4625d73d7ae710cfb10545b055a5a048
Author: leonidfrolov <[email protected]>
AuthorDate: Thu May 27 10:12:06 2021 +0300
[DATALAB-2091]: changed how cron is added
---
infrastructure-provisioning/src/ssn/scripts/configure_docker.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
index 8f8df45..aa20a68 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
@@ -184,7 +184,7 @@ def status_container_removal_cron():
except Exception as err:
traceback.print_exc()
print('Failed to create admin status container removal cron: ',
str(err))
- return False
+ sys.exit(1)
##############
# Run script #
@@ -226,8 +226,7 @@ if __name__ == "__main__":
sys.exit(1)
print("Adding cron to remove edge status containers")
- if not status_container_removal_cron():
- sys.exit(1)
+ status_container_removal_cron()
conn.close()
sys.exit(0)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]