This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1594
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit fa0a42130a44877bce46492e216ba01e187611a3
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Mar 13 18:09:31 2020 +0200

    [DLAB-1594]: changed some lines
---
 infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py 
b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
index 42871b1..073c0ad 100644
--- a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
+++ b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
@@ -110,10 +110,10 @@ if __name__ == "__main__":
     try:
         if args.node_type != 'ssn_node' and  node_type != 'edge_node':
             print('Valid node type should be specified. Available options: 
ssn_node, edge_node')
-            sys.exit(1)
+            raise Exception
         if args.os_family != 'debian' and args.os_family != 'redhat':
             print('Valid os family should be specified. Available options: 
debian, redhat')
-            sys.exit(1)
+            raise Exception
         install_certbot(args.os_family)
         run_certbot(args.domain_name, args.email)
         configure_nginx(args.domain_name, args.node_type)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to