From: Stephen Soltesz Date: Thu, 7 Oct 2010 16:56:39 +0000 (-0400) Subject: Add a more instructive Event message to reconstruct what actually occurred as X-Git-Tag: plcapi-5.0-19~78 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=12ae121994f9ad32ed428724babd19259b685312;p=plcapi.git Add a more instructive Event message to reconstruct what actually occurred as well as the return value from the reboot attempt. --- diff --git a/PLC/Methods/RebootNodeWithPCU.py b/PLC/Methods/RebootNodeWithPCU.py index 88c2225..751f9fd 100644 --- 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']]} - self.message = "RebootNodeWithPCU called" + self.message = "RebootNodeWithPCU %s with %s returned %s" % (node['node_id'], pcu['pcu_id'], ret) return ret