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 7d24cd9  [DATALAB-2321]: added output during rule removal
7d24cd9 is described below

commit 7d24cd9a3f6f32684cc1dee41b96bb7c8c2f2105
Author: leonidfrolov <[email protected]>
AuthorDate: Tue May 18 10:17:15 2021 +0300

    [DATALAB-2321]: added output during rule removal
---
 .../src/general/scripts/azure/ssn_terminate.py                        | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py 
b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
index 682059b..6f89c8b 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -129,15 +129,13 @@ def terminate_ssn_node(resource_group_name, 
service_base_name, vpc_name, region)
     print("Removing rules in predefined edge security group")
     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('=======')
                 rule_name = str(rule)[str(rule).find("'name': '") + 9 : 
str(rule).find("', 'etag':")]
                 print(rule_name)
                 if service_base_name in rule_name:
                     
AzureActions.remove_security_rules(os.environ['azure_edge_security_group_name'],
                                                resource_group_name, rule_name)
+                    print("Rule {} is removed".format(rule_name))
     except Exception as err:
         datalab.fab.append_result("Failed to remove rules in predefined edge 
security group", str(err))
         sys.exit(1)

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

Reply via email to