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

commit 7071a83ecf61476897a914eed28a701512169729
Author: leonidfrolov <[email protected]>
AuthorDate: Tue May 18 09:48:46 2021 +0300

    [DATALAB-2321]: changed output
---
 .../src/general/scripts/azure/ssn_terminate.py                | 11 +++++------
 1 file changed, 5 insertions(+), 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 5b944f8..8046006 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -130,14 +130,13 @@ def terminate_ssn_node(resource_group_name, 
service_base_name, vpc_name, region)
     try:
         if 'azure_edge_security_group_name' in os.environ:
             print('======')
-            print(str(AzureMeta.list_security_group_rules(resource_group_name, 
os.environ['azure_edge_security_group_name'])))
-            for rule in 
AzureMeta.list_security_group_rules(resource_group_name, 
os.environ['azure_edge_security_group_name']):
+            print(str(AzureMeta.list_security_group_rules(resource_group_name, 
os.environ['azure_edge_security_group_name'])['value']))
+            for rule in 
AzureMeta.list_security_group_rules(resource_group_name, 
os.environ['azure_edge_security_group_name'])['value']:
                 print('=======')
                 print(rule)
-                rule_name = str(rule)[str(rule).find("'name': '") + 9 : 
str(rule).find("', 'etag':")]
-                print(rule_name)
-                sys.exit(1)
-                
AzureActions.remove_security_rules(os.environ['azure_edge_security_group_name'],
+                #rule_name = str(rule)[str(rule).find("'name': '") + 9 : 
str(rule).find("', 'etag':")]
+                #print(rule_name)
+                
#AzureActions.remove_security_rules(os.environ['azure_edge_security_group_name'],
                                                resource_group_name, rule_name)
     except Exception as err:
         datalab.fab.append_result("Failed to remove rules in predefined edge 
security group", str(err))

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

Reply via email to