git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a more instructive Event message to reconstruct what actually occurred as
[plcapi.git]
/
PLC
/
Methods
/
RebootNodeWithPCU.py
diff --git
a/PLC/Methods/RebootNodeWithPCU.py
b/PLC/Methods/RebootNodeWithPCU.py
index
88c2225
..
751f9fd
100644
(file)
--- a/
PLC/Methods/RebootNodeWithPCU.py
+++ b/
PLC/Methods/RebootNodeWithPCU.py
@@
-78,6
+78,6
@@
class RebootNodeWithPCU(Method):
node.update_last_pcu_reboot(commit=True) # commits new timestamp to node
self.event_objects = {'Node': [node['node_id']]}
node.update_last_pcu_reboot(commit=True) # commits new timestamp to node
self.event_objects = {'Node': [node['node_id']]}
- self.message = "RebootNodeWithPCU
called"
+ self.message = "RebootNodeWithPCU
%s with %s returned %s" % (node['node_id'], pcu['pcu_id'], ret)
return ret
return ret