Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add dms handler
[pti/o2.git]
/
o2ims
/
config.py
diff --git
a/o2ims/config.py
b/o2ims/config.py
index
7db2d0a
..
7283383
100644
(file)
--- a/
o2ims/config.py
+++ b/
o2ims/config.py
@@
-37,6
+37,10
@@
def get_o2ims_api_base():
return '/o2ims_infrastructureInventory/v1'
+def get_o2dms_api_base(dmsid: str):
+ return "/" + dmsid + '/o2dms/v1'
+
+
def get_redis_host_and_port():
host = os.environ.get("REDIS_HOST", "localhost")
port = 63791 if host == "localhost" else 6379