Skip to content

Commit

Permalink
fix(tpapp): visiable lables app_info add paas_host
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Nov 22, 2021
1 parent c213cdc commit cae0eae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paas2/paas/tpapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def info(request, app_code):
# app_developers = Permission().app_developers(app_code)
# developers = subjects_display(app_developers)
developers = "--"
paas_host = "{}://{}".format(settings.HTTP_SCHEMA, settings.PAAS_DOMAIN)

token = "--" if app.code in ("bk_cmdb", "bk_job") else (app.auth_token or "--")

Expand All @@ -195,6 +196,7 @@ def info(request, app_code):
"open_mode": app.open_mode,
"open_mode_name": _(OPENMODE_DICT.get(app.open_mode)) or "",
"visiable_labels": parse_app_visiable_labels(app.visiable_labels),
"paas_host": paas_host,
}
return render_mako_context(
request,
Expand Down

0 comments on commit cae0eae

Please sign in to comment.