added line breaks for pcu hints,
[monitor.git] / pcucontrol / reboot.py
index a0ba1f2..5744141 100755 (executable)
@@ -331,6 +331,7 @@ class PCUControl(PCUModel,PCURecord):
                        email_exception(self.host)
                        raise Exception(err)
 
+from pcucontrol.util import command
 from pcucontrol.models import *
 
 def pcu_name(pcu):
@@ -392,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