You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dm...@apache.org on 2019/09/24 07:31:57 UTC

[incubator-dlab] 01/01: [DLAB-1062] Fixed issue with image names

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

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

commit 68833d4ce034fd78ea0d5eea6c04ef12620daf59
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Mon Sep 23 16:54:53 2019 +0300

    [DLAB-1062] Fixed issue with image names
---
 .../src/general/scripts/azure/common_prepare_notebook.py            | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
index 0c80e1b..87ee2a9 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
@@ -90,9 +90,9 @@ if __name__ == "__main__":
 
         notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
             notebook_config['service_base_name'],
-            os.environ['endpoint_name'],
-            os.environ['project_name'],
-            os.environ['application'])
+            os.environ['endpoint_name'].lower().replace('_', '-'),
+            os.environ['project_name'].lower().replace('_', '-'),
+            os.environ['application'].lower().replace('_', '-'))
         notebook_config['notebook_image_name'] = (lambda x: os.environ['notebook_image_name'].lower().replace('_', '-') if (x != 'None' and x != '')
             else notebook_config['expected_image_name'])(str(os.environ.get('notebook_image_name')))
         print('Searching pre-configured images')


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