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

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


The following commit(s) were added to refs/heads/DLAB-1405 by this push:
     new 09a88a6  [DLAB-1405] Testing parameters
09a88a6 is described below

commit 09a88a6137f00285957ddd115088ad7be1bf9500
Author: Demyan Mysakovets <demian.mysakove...@gmail.com>
AuthorDate: Wed Jan 22 16:10:04 2020 +0200

    [DLAB-1405] Testing parameters
---
 infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py    | 2 ++
 .../src/general/scripts/gcp/ssn_terminate_gcp_resources.py              | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py 
b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
index c033429..cf71160 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
@@ -42,6 +42,7 @@ if __name__ == "__main__":
     ssn_conf['zone'] = os.environ['gcp_zone']
     pre_defined_vpc = False
     try:
+        print('gcp_vpc_name: ' + os.environ['gcp_vpc_name'])
         if os.environ['gcp_vpc_name'] == '':
             raise KeyError
         else:
@@ -49,6 +50,7 @@ if __name__ == "__main__":
             ssn_conf['vpc_name'] = os.environ['gcp_vpc_name']
     except KeyError:
         ssn_conf['vpc_name'] = 
'{}-ssn-vpc'.format(ssn_conf['service_base_name'])
+    print('ssn_conf[vpc_name]: ' + ssn_conf['vpc_name'])
 
     try:
         logging.info('[TERMINATE SSN]')
diff --git 
a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
 
b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
index 842116c..b5dd007 100644
--- 
a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
+++ 
b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
@@ -135,7 +135,7 @@ if __name__ == "__main__":
         sys.exit(1)
 
     print("Removing SSN VPC")
-    if args.pre_defined_vpc != 'false':
+    if args.pre_defined_vpc != 'False':
         try:
             GCPActions().remove_vpc(args.vpc_name)
         except Exception as err:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to