From b5cb876d8b2a567192a9a8f2df1b7fa6c0dba047 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 13 Mar 2009 22:32:54 +0000 Subject: [PATCH] added line breaks for pcu hints, added clearer message for catching exception strings. --- pcucontrol/reboot.py | 3 ++- web/MonitorWeb/monitorweb/templates/pcuview.kid | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pcucontrol/reboot.py b/pcucontrol/reboot.py index f47da2e..5744141 100755 --- a/pcucontrol/reboot.py +++ b/pcucontrol/reboot.py @@ -393,7 +393,8 @@ def reboot_api(node, pcu): rb_ret = "No modelname in PCU record." # TODO: how to handle the weird, georgetown pcus, the drac faults, and ilo faults except Exception, err: - rb_ret = str(err) + rb_ret = "Exception Model(%s): " % modelname + rb_ret += str(err) return rb_ret diff --git a/web/MonitorWeb/monitorweb/templates/pcuview.kid b/web/MonitorWeb/monitorweb/templates/pcuview.kid index 5bf82b8..9740ea0 100644 --- a/web/MonitorWeb/monitorweb/templates/pcuview.kid +++ b/web/MonitorWeb/monitorweb/templates/pcuview.kid @@ -202,12 +202,15 @@ from links import * ssh -o PasswordAuthentication=yes -o PubkeyAuthentication=no ${pcu.plc_pcu_stats['username']}@${pcu_name(pcu.plc_pcu_stats)} +
telnet ${pcu_name(pcu.plc_pcu_stats)} +
http://${pcu_name(pcu.plc_pcu_stats)} +

-- 2.43.0