html output header: return project name instead of id 65/7865/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 28 Aug 2019 13:30:23 +0000 (13:30 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 28 Aug 2019 13:40:42 +0000 (13:40 +0000)
Change-Id: I44134a1fb02006b82a7ed74a04f2737b53f47453
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/html_out.py

index 1883a96..a8823bd 100644 (file)
@@ -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,