You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dm...@apache.org on 2020/01/22 14:39:21 UTC

[incubator-dlab] 01/02: [DLAB-1405] Added print functions for testing purpose

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

commit 78052e7144a9ed98bde05fefd4afbfba6a0713df
Author: Demyan Mysakovets <de...@gmail.com>
AuthorDate: Wed Jan 22 16:38:41 2020 +0200

    [DLAB-1405] Added print functions for testing purpose
---
 infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py   | 2 ++
 .../src/general/scripts/gcp/ssn_terminate_gcp_resources.py             | 3 ++-
 2 files changed, 4 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..a844c2c 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
@@ -49,6 +49,8 @@ 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('os.environ[gcp_vpc_name]: ' + os.environ['gcp_vpc_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 b5dd007..b676516 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,8 @@ if __name__ == "__main__":
         sys.exit(1)
 
     print("Removing SSN VPC")
-    if args.pre_defined_vpc != 'False':
+    print("args.pre_defined_vpc" + args.pre_defined_vpc)
+    if args.pre_defined_vpc != 'True':
         try:
             GCPActions().remove_vpc(args.vpc_name)
         except Exception as err:


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