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:39:48 UTC

[incubator-datalab] branch DATALAB-2321 updated: [DATALAB-2321]: added handling of the output as a json

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 50f62cb  [DATALAB-2321]: added handling of the output as a json
50f62cb is described below

commit 50f62cb3cab494ea1d3d609054ce76ee80409ad5
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Mar 10 10:39:37 2021 +0200

    [DATALAB-2321]: added handling of the output as a json
---
 .../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 fbaea08..5f916f5 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'])['subnets'])
+            print(json.loads(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'])['subnets']:
+            for i in json.loads(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