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 cfeef6e  [DATALAB-2321]: changed variable used
cfeef6e is described below

commit cfeef6e5a895e1de3b3087f17c0aa320c564508f
Author: leonidfrolov <[email protected]>
AuthorDate: Mon May 17 17:16:33 2021 +0300

    [DATALAB-2321]: changed variable used
---
 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 b5f2e18..f4e209e 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -121,7 +121,7 @@ def terminate_ssn_node(resource_group_name, 
service_base_name, vpc_name, region)
                 subnet_name = str(subnet)[str(subnet).find("'name': '") + 9 : 
str(subnet).find("', 'etag':")]
                 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']))
+                    print("Subnet {} has been removed from VPC 
{}".format(subnet_name, os.environ['azure_vpc_name']))
         except Exception as err:
             datalab.fab.append_result("Failed to remove subnets in predefined 
VPC", str(err))
             sys.exit(1)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to