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 62a2c07 [DATALAB-2321]: changed subnet removal
62a2c07 is described below
commit 62a2c072bc76db4f3d2095c25972ca072822ff84
Author: leonidfrolov <[email protected]>
AuthorDate: Mon May 17 15:41:49 2021 +0300
[DATALAB-2321]: changed subnet removal
---
infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
index 03aa08b..ecf355c 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -120,7 +120,7 @@ def terminate_ssn_node(resource_group_name,
service_base_name, vpc_name, region)
print('========')
print(AzureMeta.list_subnets(resource_group_name,
os.environ['azure_vpc_name']))
print('========')
- for i in AzureMeta.get_vpc(resource_group_name,
os.environ['azure_vpc_name']):
+ for i in AzureMeta.list_subnets(resource_group_name,
os.environ['azure_vpc_name']):
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: [email protected]
For additional commands, e-mail: [email protected]