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/10/09 14:21:48 UTC

[incubator-dlab] branch DLAB-1145 updated: fixed typo

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

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


The following commit(s) were added to refs/heads/DLAB-1145 by this push:
     new 83dd98a  fixed typo
83dd98a is described below

commit 83dd98a36aeae44fdbb4e0032f0935b2149b058f
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Wed Oct 9 17:21:39 2019 +0300

    fixed typo
---
 .../src/general/files/os/local_endpoint.json               | 14 ++++++++------
 .../src/ssn/scripts/configure_mongo.py                     |  2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/infrastructure-provisioning/src/general/files/os/local_endpoint.json b/infrastructure-provisioning/src/general/files/os/local_endpoint.json
index aab5305..67f9a54 100644
--- a/infrastructure-provisioning/src/general/files/os/local_endpoint.json
+++ b/infrastructure-provisioning/src/general/files/os/local_endpoint.json
@@ -1,6 +1,8 @@
-{
-    "name" : "DEF_ENDPOINT_NAME",
-    "url" : "https://localhost:8084/",
-    "account" : "DEF_ENDPOINT_NAME",
-    "endpoint_tag" : "DEF_ENDPOINT_NAME"
-}
+[
+    {
+        "name" : "DEF_ENDPOINT_NAME",
+        "url" : "https://localhost:8084/",
+        "account" : "DEF_ENDPOINT_NAME",
+        "endpoint_tag" : "DEF_ENDPOINT_NAME"
+    }
+]
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
index 1cd5eb5..1d93fda 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
@@ -88,7 +88,7 @@ if __name__ == "__main__":
         with open(args.dlab_path + 'tmp/local_endpoint.json', 'r') as data:
             json_data = json.load(data)
         for i in json_data:
-            client.dlabdb.roles.insert_one(i)
+            client.dlabdb.endpoints.insert_one(i)
         # client.dlabdb.security.create_index("expireAt", expireAfterSeconds=7200)
         if add_2_yml_config(path,'security','authorization','enabled'):
             command = ['service', 'mongod', 'restart']


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