From: Stephen Soltesz Date: Fri, 13 Mar 2009 22:32:54 +0000 (+0000) Subject: added line breaks for pcu hints, X-Git-Tag: Monitor-2.0-5~5 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=b5cb876d8b2a567192a9a8f2df1b7fa6c0dba047 added line breaks for pcu hints, added clearer message for catching exception strings. --- 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)} +