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

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


The following commit(s) were added to refs/heads/DLAB-1882 by this push:
     new 5e18a2f  [DLAB-1882]: changed image creation
5e18a2f is described below

commit 5e18a2fa696e791651a7f5ff38534d3ec329fdc8
Author: leonidfrolov <frolovl...@gmail.com>
AuthorDate: Wed Jun 17 22:22:32 2020 +0300

    [DLAB-1882]: changed image creation
---
 .../src/general/scripts/gcp/common_create_notebook_image.py    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/gcp/common_create_notebook_image.py
 
b/infrastructure-provisioning/src/general/scripts/gcp/common_create_notebook_image.py
index dd0e643..4f235b4 100644
--- 
a/infrastructure-provisioning/src/general/scripts/gcp/common_create_notebook_image.py
+++ 
b/infrastructure-provisioning/src/general/scripts/gcp/common_create_notebook_image.py
@@ -40,21 +40,21 @@ if __name__ == "__main__":
         except:
             image_conf['exploratory_name'] = ''
         image_conf['service_base_name'] = os.environ['conf_service_base_name'] 
= dlab.fab.replace_multi_symbols(
-            os.environ['conf_service_base_name'][:20], '-', True)
+            os.environ['conf_service_base_name'][:20], '-', True).lower()
         image_conf['endpoint_name'] = 
(os.environ['endpoint_name']).replace('_', '-').lower()
         image_conf['endpoint_tag'] = image_conf['endpoint_name']
-        image_conf['project_name'] = os.environ['project_name']
-        image_conf['project_tag'] = os.environ['project_name']
+        image_conf['project_name'] = os.environ['project_name'].lower()
+        image_conf['project_tag'] = image_conf['project_name']
         image_conf['instance_name'] = os.environ['notebook_instance_name']
         image_conf['instance_tag'] = 
'{}-tag'.format(image_conf['service_base_name'])
         image_conf['application'] = os.environ['application']
         image_conf['image_name'] = 
os.environ['notebook_image_name'].replace('_', '-').lower()
         image_conf['expected_primary_image_name'] = 
'{}-{}-{}-{}-primary-image-{}'.format(
             image_conf['service_base_name'], image_conf['project_name'], 
image_conf['endpoint_name'],
-            os.environ['application'], image_conf['image_name']).lower()
+            os.environ['application'], image_conf['image_name'])
         image_conf['expected_secondary_image_name'] = 
'{}-{}-{}-{}-secondary-image-{}'.format(
             image_conf['service_base_name'], image_conf['project_name'], 
image_conf['endpoint_name'],
-            os.environ['application'], image_conf['image_name']).lower()
+            os.environ['application'], image_conf['image_name'])
         image_conf['image_labels'] = {"sbn": image_conf['service_base_name'],
                                            "endpoint_tag": 
image_conf['endpoint_tag'],
                                            "project_tag": 
image_conf['project_tag'],


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

Reply via email to