You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/11/12 10:21:44 UTC

[incubator-dlab] branch custom-ami-fix-dev created (now 2076924)

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

omartushevskyi pushed a change to branch custom-ami-fix-dev
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 2076924  Fixed issue with custom ami;

This branch includes the following new commits:

     new 2076924  Fixed issue with custom ami;

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-dlab] 01/01: Fixed issue with custom ami;

Posted by om...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch custom-ami-fix-dev
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 207692475345d3cef9c9d61f7d865b6d8771b904
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Tue Nov 12 12:21:34 2019 +0200

    Fixed issue with custom ami;
---
 .../src/general/scripts/aws/common_prepare_notebook.py                  | 2 +-
 .../src/general/scripts/azure/common_prepare_notebook.py                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
index 9131c7f..de8b3b4 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
@@ -88,7 +88,7 @@ if __name__ == "__main__":
     notebook_config['notebook_image_name'] = (lambda x: '{0}-{1}-{2}-{3}'.format(notebook_config['service_base_name'],
                                                                                  os.environ['project_name'],
                                                                                  os.environ['application'],
-                                                                                 os.environ['notebook_image_name'].lower().replace('_', '-')) if (x != 'None' and 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')
     notebook_config['ami_id'] = get_ami_id(os.environ['aws_{}_image_name'.format(os.environ['conf_os_family'])])
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 bbe8803..b7e493c 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
@@ -105,7 +105,7 @@ if __name__ == "__main__":
         notebook_config['notebook_image_name'] = (lambda x: '{0}-{1}-{2}-{3}'.format(notebook_config['service_base_name'],
                                                                                  os.environ['project_name'],
                                                                                  os.environ['application'],
-                                                                                 os.environ['notebook_image_name'].lower().replace('_', '-')) if (x != 'None' and 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')
         notebook_config['image_name'] = os.environ['azure_{}_image_name'.format(os.environ['conf_os_family'])]


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