From 56b928c935f3114a3d9c12c2f97c15d45b0f293e Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 22 Apr 2013 22:40:50 -0400 Subject: [PATCH] Show server port, if available. --- xonstat/templates/server_info.mako | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index 5f54070..f103045 100644 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -24,7 +24,13 @@ Server Information

${server.name}

- IP Address: ${server.ip_addr}
+ IP Address: + % if server.port is not None: + ${server.ip_addr}:${server.port} + % else: + ${server.ip_addr} + % endif +
Revision: ${server.revision}
Added ${server.fuzzy_date()}

-- 2.39.2