git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merged into 2.0 branch.
[monitor.git]
/
pcucontrol
/
models
/
IPAL.py
diff --git
a/pcucontrol/models/IPAL.py
b/pcucontrol/models/IPAL.py
index
75668db
..
758beae
100644
(file)
--- a/
pcucontrol/models/IPAL.py
+++ b/
pcucontrol/models/IPAL.py
@@
-90,7
+90,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):
status = ret[node_port]
if node_port < len(ret):
status = ret[node_port]
@@
-101,9
+101,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:
@@
-129,9
+129,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