From 19ee3b009a324217eace4684af72f4344655592e Mon Sep 17 00:00:00 2001 From: tierno Date: Wed, 28 Aug 2019 13:30:23 +0000 Subject: [PATCH] html output header: return project name instead of id Change-Id: I44134a1fb02006b82a7ed74a04f2737b53f47453 Signed-off-by: tierno --- osm_nbi/html_out.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_nbi/html_out.py b/osm_nbi/html_out.py index 1883a96..a8823bd 100644 --- a/osm_nbi/html_out.py +++ b/osm_nbi/html_out.py @@ -186,7 +186,7 @@ def format(data, request, response, toke_info): if toke_info.get("username"): user_text += "user: {}".format(toke_info.get("username")) if toke_info.get("project_id"): - user_text += ", project: {}".format(toke_info.get("project_id")) + user_text += ", project: {}".format(toke_info.get("project_name")) return html_start.format(user_text) + body + html_end # yaml.safe_dump(data, explicit_start=True, indent=4, default_flow_style=False) # tags=False, -- 2.25.1