You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/03/10 08:37:36 UTC

[incubator-datalab] branch DATALAB-2321 updated: [DATALAB-2321]: changed additional output during subnet removal

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

lfrolov pushed a commit to branch DATALAB-2321
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2321 by this push:
     new 3d2461f  [DATALAB-2321]: changed additional output during subnet removal
3d2461f is described below

commit 3d2461f08aee64fbaafbc0e720e2e3007d70ca2f
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Mar 10 10:37:15 2021 +0200

    [DATALAB-2321]: changed additional output during subnet removal
---
 .../src/general/scripts/azure/ssn_terminate.py                        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
index 006772f..fbaea08 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -122,9 +122,9 @@ def terminate_ssn_node(resource_group_name, service_base_name, vpc_name, region)
             print('========')
             print(os.environ['azure_vpc_name'])
             print('========')
-            print(AzureMeta.get_vpc(resource_group_name, os.environ['azure_vpc_name']))
+            print(AzureMeta.get_vpc(resource_group_name, os.environ['azure_vpc_name'])['subnets'])
             print('========')
-            for i in  AzureMeta.get_vpc(resource_group_name, os.environ['azure_vpc_name'])['properties']['subnets']:
+            for i in  AzureMeta.get_vpc(resource_group_name, os.environ['azure_vpc_name'])['subnets']:
                 if service_base_name in i['name']:
                     AzureActions.remove_subnet(resource_group_name, os.environ['azure_vpc_name'], i['name'])
                     print("Subnet {} has been removed from VPC {}".format(i['name'], os.environ['azure_vpc_name']))


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