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 exception handling for api side with trace log and
[pti/o2.git]
/
o2common
/
config
/
config.py
diff --git
a/o2common/config/config.py
b/o2common/config/config.py
index
ef67e74
..
a2907c4
100644
(file)
--- a/
o2common/config/config.py
+++ b/
o2common/config/config.py
@@
-30,6
+30,11
@@
def get_config_path():
return path
+def get_smo_ca_config_path():
+ path = os.environ.get("SMO_CA_CONFIG", "/configs/smoca.crt")
+ return path
+
+
def get_postgres_uri():
host = os.environ.get("DB_HOST", "localhost")
port = 54321 if host == "localhost" else 5432