Make the ip and hostname show up on the Drive page as well. (#759)

This commit is contained in:
Daniel Markstedt
2022-05-02 12:41:11 -07:00
committed by GitHub
parent ef6c13777c
commit aa1f3b02e3

View File

@@ -237,6 +237,7 @@ def drive_list():
username = None username = None
server_info = ractl_cmd.get_server_info() server_info = ractl_cmd.get_server_info()
ip_addr, host = sys_cmd.get_ip_and_host()
return render_template( return render_template(
"drives.html", "drives.html",
@@ -251,6 +252,8 @@ def drive_list():
cdrom_file_suffix=tuple(server_info["sccd"]), cdrom_file_suffix=tuple(server_info["sccd"]),
username=username, username=username,
auth_active=auth_active(AUTH_GROUP)["status"], auth_active=auth_active(AUTH_GROUP)["status"],
ip_addr=ip_addr,
host=host,
) )