get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / RebootNodeWithPCU.py
index 2a31e2b..2126a2e 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 import socket
 
 from PLC.Faults import *
@@ -75,7 +73,9 @@ class RebootNodeWithPCU(Method):
         # p = pcu['ports'][i]
         ret = reboot.reboot_api(node, pcu, testrun)
 
+        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