projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feature: helm charts repos with certs
[osm/NBI.git]
/
osm_nbi
/
nbi.py
diff --git
a/osm_nbi/nbi.py
b/osm_nbi/nbi.py
index
343ac0d
..
46fd8cc
100644
(file)
--- a/
osm_nbi/nbi.py
+++ b/
osm_nbi/nbi.py
@@
-1411,7
+1411,7
@@
class Server(object):
**kwargs
):
token_info = None
**kwargs
):
token_info = None
- outdata =
None
+ outdata =
{}
_format = None
method = "DONE"
engine_topic = None
_format = None
method = "DONE"
engine_topic = None
@@
-1934,6
+1934,9
@@
def _start_service():
engine_config = cherrypy.tree.apps["/osm"].config
for k, v in environ.items():
engine_config = cherrypy.tree.apps["/osm"].config
for k, v in environ.items():
+ if k == "OSMNBI_USER_MANAGEMENT":
+ feature_state = eval(v.title())
+ engine_config["authentication"]["user_management"] = feature_state
if not k.startswith("OSMNBI_"):
continue
k1, _, k2 = k[7:].lower().partition("_")
if not k.startswith("OSMNBI_"):
continue
k1, _, k2 = k[7:].lower().partition("_")