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 3a69c2a  [DATALAB-2321]: changed output
3a69c2a is described below

commit 3a69c2ac7aa7d222538402f23023f217a551caa2
Author: leonidfrolov <[email protected]>
AuthorDate: Mon May 17 16:32:57 2021 +0300

    [DATALAB-2321]: changed output
---
 .../src/general/scripts/azure/ssn_terminate.py                     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py 
b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
index 2c62662..62d7f84 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -117,16 +117,11 @@ def terminate_ssn_node(resource_group_name, 
service_base_name, vpc_name, region)
     if 'azure_vpc_name' in os.environ:
         print("Removing subnets in predefined VPC")
         try:
-            print('========')
-            print(AzureMeta.list_subnets(resource_group_name, 
os.environ['azure_vpc_name']))
-            print('========2')
             for subnet in AzureMeta.list_subnets(resource_group_name, 
os.environ['azure_vpc_name']):
                 print('========3')
                 print(subnet)
-                print('========4')
-                
print(json.loads(str(subnet).replace('\'','"').replace('None','"None"')))
                 print('========5')
-                
print(json.loads(str(subnet).replace('\'','"').replace('None','"None"'))['name'])
+                print(str(subnet))
                 if service_base_name in subnet['name']:
                     AzureActions.remove_subnet(resource_group_name, 
os.environ['azure_vpc_name'], subnet['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]

Reply via email to