You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by my...@apache.org on 2021/06/22 10:35:25 UTC

[incubator-datalab] branch DATALAB-2372 updated: [DATALAB-2372] - [GCP] Deeplearning deploy from cloud image implemented

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

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


The following commit(s) were added to refs/heads/DATALAB-2372 by this push:
     new 3abce20  [DATALAB-2372] - [GCP] Deeplearning deploy from cloud image implemented
3abce20 is described below

commit 3abce20475c895d5d4bc8366b5aec224b45c7875
Author: bodnarmykola <bo...@gmail.com>
AuthorDate: Tue Jun 22 13:35:07 2021 +0300

    [DATALAB-2372] - [GCP] Deeplearning deploy from cloud image implemented
---
 .../src/general/scripts/gcp/common_prepare_notebook.py                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
index 1c3c038..5d4f64e 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
@@ -140,7 +140,7 @@ if __name__ == "__main__":
                 notebook_config['primary_image_name'].get('name'))
         notebook_config['notebook_secondary_image_name'] = (lambda x: '{0}-{1}-{2}-{3}-secondary-image-{4}'.format(
             notebook_config['service_base_name'], notebook_config['project_name'], notebook_config['endpoint_name'],
-            os.environ['application'], os.environ['notebook_image_name'].replace('_', '-').lower()[:63]) if (x != 'None' and x != '')
+            os.environ['application'], os.environ['notebook_image_name'].replace('_', '-').lower()) if (x != 'None' and x != '')
             else notebook_config['expected_secondary_image_name'])(str(os.environ.get('notebook_image_name')))
         if notebook_config['notebook_secondary_image_name'][:63].endswith('-'):
             notebook_config['notebook_secondary_image_name'] = notebook_config['notebook_secondary_image_name'][:63][:-1]

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