You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by ad...@apache.org on 2019/11/13 14:23:45 UTC

[incubator-dlab] branch DLAB-1270 created (now 2e71e68)

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

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


      at 2e71e68  added global parameter pre_defined_vpc for gcp ssn_terminate

This branch includes the following new commits:

     new 2e71e68  added global parameter pre_defined_vpc for gcp ssn_terminate

The 1 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.



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


[incubator-dlab] 01/01: added global parameter pre_defined_vpc for gcp ssn_terminate

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2e71e6877895a1262831a66a95fc620466134009
Author: AdamsDisturber <ad...@gmail.com>
AuthorDate: Wed Nov 13 16:23:31 2019 +0200

    added global parameter pre_defined_vpc for gcp ssn_terminate
---
 infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
index bceeaa4..34aa6e0 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate.py
@@ -40,6 +40,7 @@ if __name__ == "__main__":
         os.environ['conf_service_base_name'].replace('_', '-')[:12], '-', True)
     ssn_conf['region'] = os.environ['gcp_region']
     ssn_conf['zone'] = os.environ['gcp_zone']
+    pre_defined_vpc = False
     try:
         if os.environ['gcp_vpc_name'] == '':
             raise KeyError
@@ -52,8 +53,8 @@ if __name__ == "__main__":
     try:
         logging.info('[TERMINATE SSN]')
         print('[TERMINATE SSN]')
-        params = "--service_base_name {} --region {} --zone {} --pre_defined_vpc {} --vpc_name {}".format(ssn_conf['service_base_name'],
-                                                                       ssn_conf['region'], ssn_conf['zone'], pre_defined_vpc, ssn_conf['vpc_name'], )
+        params = "--service_base_name {} --region {} --zone {} --pre_defined_vpc {} --vpc_name {}".format(
+            ssn_conf['service_base_name'], ssn_conf['region'], ssn_conf['zone'], pre_defined_vpc, ssn_conf['vpc_name'])
         try:
             local("~/scripts/{}.py {}".format('ssn_terminate_gcp_resources', params))
         except:


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