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

omartushevskyi pushed a commit to branch DLAB-1546
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1546 by this push:
     new 5375125  [DLAB-1546]: added name convention changes
5375125 is described below

commit 5375125d94ef90efc193a5d3becba26c1b044217
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Fri Feb 28 18:31:32 2020 +0200

    [DLAB-1546]: added name convention changes
---
 .../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 42398fe..3deff81 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_terminate.py
@@ -146,8 +146,8 @@ if __name__ == "__main__":
     ssn_conf = dict()
     ssn_conf['service_base_name'] = 
dlab.fab.replace_multi_symbols(os.environ['conf_service_base_name'][:20],
                                                                    '-', True)
-    ssn_conf['resource_group_name'] = dlab.fab.replace_multi_symbols(
-        os.environ['azure_resource_group_name'][:20], '-', True)
+    ssn_conf['resource_group_name'] = os.environ.get(
+            'azure_source_resource_group_name', 
'{}-resource-group'.format(ssn_conf['service_base_name']))
     ssn_conf['region'] = os.environ['azure_region']
     ssn_conf['vpc_name'] = os.environ['azure_vpc_name']
 


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

Reply via email to