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 2020/01/23 14:36:13 UTC

[incubator-dlab] branch DLAB-1472 updated: [DLAB-1472]: fixed issue with local endpoint

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

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


The following commit(s) were added to refs/heads/DLAB-1472 by this push:
     new e283b20  [DLAB-1472]: fixed issue with local endpoint
e283b20 is described below

commit e283b20ba56824da6f8f4f36408a5715e302145f
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Thu Jan 23 16:36:01 2020 +0200

    [DLAB-1472]: fixed issue with local endpoint
---
 infrastructure-provisioning/src/general/files/os/local_endpoint.json | 4 +++-
 infrastructure-provisioning/src/ssn/scripts/configure_ui.py          | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/files/os/local_endpoint.json b/infrastructure-provisioning/src/general/files/os/local_endpoint.json
index 67f9a54..190a47e 100644
--- a/infrastructure-provisioning/src/general/files/os/local_endpoint.json
+++ b/infrastructure-provisioning/src/general/files/os/local_endpoint.json
@@ -3,6 +3,8 @@
         "name" : "DEF_ENDPOINT_NAME",
         "url" : "https://localhost:8084/",
         "account" : "DEF_ENDPOINT_NAME",
-        "endpoint_tag" : "DEF_ENDPOINT_NAME"
+        "endpoint_tag" : "DEF_ENDPOINT_NAME",
+        "cloudProvider" : "CLOUD_PROVIDER",
+        "status" : "ACTIVE"
     }
 ]
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
index 8e1e56f..ad3b7ed 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
@@ -127,6 +127,8 @@ def configure_mongo(mongo_passwd, default_endpoint_name):
                                                                                              env.host_string))
         sudo('mv /tmp/mongo_roles.json ' + args.dlab_path + 'tmp/')
         sudo('sed -i "s|DEF_ENDPOINT_NAME|{0}|g" /tmp/local_endpoint.json'.format(default_endpoint_name))
+        sudo('sed -i "s|CLOUD_PROVIDER|{0}|g" /tmp/local_endpoint.json'.format(
+            os.environ['conf_cloud_provider'].upper()))
         sudo('mv /tmp/local_endpoint.json ' + args.dlab_path + 'tmp/')
         sudo("python " + args.dlab_path + "tmp/configure_mongo.py --dlab_path {} ".format(
             args.dlab_path))


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