You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/09/22 11:11:53 UTC
[incubator-dlab] branch DLAB-1911 updated: [DLAB-1911]: fixed
termination of resource group in case if resource group is predefined
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1911
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1911 by this push:
new 7501079 [DLAB-1911]: fixed termination of resource group in case if resource group is predefined
7501079 is described below
commit 750107966fe67d8f7bdf429dab4719c77c48fdfc
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Sep 22 14:11:29 2020 +0300
[DLAB-1911]: fixed termination of resource group in case if resource group is predefined
---
.../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 9f8946c..d1bf732 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -125,9 +125,9 @@ def terminate_ssn_node(resource_group_name, service_base_name, vpc_name, region)
print("Removing Resource Group")
try:
- if AzureMeta.get_resource_group(resource_group_name):
+ if AzureMeta.get_resource_group(resource_group_name) and resource_group_name == '{}-resource-group'.format(service_base_name):
AzureActions.remove_resource_group(resource_group_name, region)
- print("Resource group {} has been terminated".format(vpc_name))
+ print("Resource group {} has been terminated".format(resource_group_name))
except Exception as err:
dlab.fab.append_result("Failed to remove resource group", str(err))
sys.exit(1)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org