added line breaks for pcu hints,
authorStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 13 Mar 2009 22:32:54 +0000 (22:32 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 13 Mar 2009 22:32:54 +0000 (22:32 +0000)
added clearer message for catching exception strings.

pcucontrol/reboot.py
web/MonitorWeb/monitorweb/templates/pcuview.kid

index f47da2e..5744141 100755 (executable)
@@ -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
 
index 5bf82b8..9740ea0 100644 (file)
@@ -202,12 +202,15 @@ from links import *
                                        <span class="code" py:if="port == 22 and state == 'open'">
                                                ssh -o PasswordAuthentication=yes -o PubkeyAuthentication=no 
                                                ${pcu.plc_pcu_stats['username']}@${pcu_name(pcu.plc_pcu_stats)}
+                                               <br/>
                                        </span>
                                        <span class="code" py:if="port == 23 and state == 'open'">
                                                telnet ${pcu_name(pcu.plc_pcu_stats)}
+                                               <br/>
                                        </span>
                                        <span class="code" py:if="port == 80 and state == 'open'">
                                                <a href="http://${pcu_name(pcu.plc_pcu_stats)}">http://${pcu_name(pcu.plc_pcu_stats)}</a>
+                                               <br/>
                                        </span>
                                        <span class="code" py:if="port == 443 and state == 'open'">
                                                <br/>