X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=46fd8cce40c8df20f3409a0dccaa1c16cb9a24bc;hb=5cdcb80a5a968efc0f21c358974200c0f7bf75c5;hp=343ac0d2e4bcf9ed131ca70607e60309109c0a9a;hpb=7802ff80245ba7ba6055bc927b91e4f8b1f42542;p=osm%2FNBI.git diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 343ac0d..46fd8cc 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -1411,7 +1411,7 @@ class Server(object): **kwargs ): token_info = None - outdata = None + outdata = {} _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(): + 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("_")