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:20 UTC

[incubator-dlab] branch DLAB-1405 updated (386c686 -> f90877b)

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

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


    from 386c686  [DLAB-1405] Removed print functions for testing purpose
     new 78052e7  [DLAB-1405] Added print functions for testing purpose
     new f90877b  [DLAB-1405] Added print functions for testing purpose

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 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(-)


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


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

Posted by dm...@apache.org.
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


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

Posted by dm...@apache.org.
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 f90877b27c32ee9fc4592afc1e4851aa2182d618
Author: Demyan Mysakovets <de...@gmail.com>
AuthorDate: Wed Jan 22 16:39:04 2020 +0200

    [DLAB-1405] Added print functions for testing purpose
---
 .../src/general/scripts/gcp/ssn_terminate_gcp_resources.py              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 b676516..3fbc48c 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")
-    print("args.pre_defined_vpc" + args.pre_defined_vpc)
+    print("args.pre_defined_vpc " + args.pre_defined_vpc)
     if args.pre_defined_vpc != 'True':
         try:
             GCPActions().remove_vpc(args.vpc_name)


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