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/04/27 13:09:23 UTC

[incubator-datalab] branch DATALAB-2340 updated: [DATALAB-2340]: removed additional output, added check if SBN tag is among net interface tags

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2340
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2340 by this push:
     new a5aebc3  [DATALAB-2340]: removed additional output, added check if SBN tag is among net interface tags
a5aebc3 is described below

commit a5aebc3ee015353955acfd32ea469ee2c2a78320
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Apr 27 16:09:10 2021 +0300

    [DATALAB-2340]: removed additional output, added check if SBN tag is among net interface tags
---
 .../src/general/scripts/azure/ssn_terminate.py                    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
index 225e72b..55c0b39 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -47,13 +47,7 @@ def terminate_ssn_node(resource_group_name, service_base_name, vpc_name, region)
     print("Removing network interfaces")
     try:
         for network_interface in AzureMeta.list_network_interfaces(resource_group_name):
-            print("======1")
-            print(network_interface)
-            print("======2")
-            print(network_interface.tags)
-            if "SBN" not in network_interface.tags:
-                print('======3')
-            if service_base_name == network_interface.tags["SBN"]:
+            if "SBN" in network_interface.tags and service_base_name == network_interface.tags["SBN"]:
                 AzureActions.delete_network_if(resource_group_name, network_interface.name)
                 print("Network interface {} has been removed".format(network_interface.name))
     except Exception as err:

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org