git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12c56cc
)
more meaningful exception messages to help track down problems.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 16 Mar 2009 16:42:06 +0000
(16:42 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 16 Mar 2009 16:42:06 +0000
(16:42 +0000)
reboot.py
patch
|
blob
|
history
diff --git
a/reboot.py
b/reboot.py
index
ba75d78
..
67be293
100755
(executable)
--- a/
reboot.py
+++ b/
reboot.py
@@
-332,7
+332,7
@@
class IPAL(PCUControl):
print "Current status is '%s'" % ret
if ret == '':
print "Current status is '%s'" % ret
if ret == '':
- raise Exception("Status returned 'another session already open'
%s : %s" % (
node_port, ret))
+ raise Exception("Status returned 'another session already open'
on %s %s : %s" % (self.host,
node_port, ret))
if node_port < len(ret):
if node_port < len(ret):
@@
-344,9
+344,9
@@
class IPAL(PCUControl):
# down
power_on = False
else:
# down
power_on = False
else:
- raise Exception("Unknown status for PCU
socket %s : %s" % (
node_port, ret))
+ raise Exception("Unknown status for PCU
%s socket %s : %s" % (self.host,
node_port, ret))
else:
else:
- raise Exception("Mismatch between configured port and PCU
status: %s %s" % (
node_port, ret))
+ raise Exception("Mismatch between configured port and PCU
%s status: %s %s" % (self.host,
node_port, ret))
if not dryrun:
if not dryrun:
@@
-372,9
+372,9
@@
class IPAL(PCUControl):
# down
power_on = False
else:
# down
power_on = False
else:
- raise Exception("Unknown status for PCU
socket %s : %s" % (
node_port, ret))
+ raise Exception("Unknown status for PCU
%s socket %s : %s" % (self.host,
node_port, ret))
else:
else:
- raise Exception("Mismatch between configured port and PCU
status: %s %s" % (
node_port, ret))
+ raise Exception("Mismatch between configured port and PCU
%s status: %s %s" % (self.host,
node_port, ret))
if power_on:
return 0
if power_on:
return 0