Skip to content
Snippets Groups Projects
Commit f058f866 authored by Maël Méliani's avatar Maël Méliani
Browse files

Added dbtype entry in get response for a datastore.

parent 38f031ef
No related branches found
No related tags found
No related merge requests found
......@@ -187,11 +187,12 @@ class datastore(object):
with webapp.mightNotFound("dataStore", workspace=ws_name):
info = ws.get_datastore_info(ds_name)
connectionParameters = info["connectionParameters"]
entries = {}
if "url" in connectionParameters:
entries["url"] = connectionParameters["url"]
elif "database" in connectionParameters:
elif "dbtype" in connectionParameters:
entries["dbtype"] = connectionParameters["dbtype"]
entries["database"] = connectionParameters["database"]
entries["host"] = connectionParameters["host"]
entries["port"] = connectionParameters["port"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment