- - added logging variable 'object_type'
[plcapi.git] / PLC / Methods / BootUpdateNode.py
index 31dbb37..5c1762a 100644 (file)
@@ -30,6 +30,8 @@ class BootUpdateNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
     def call(self, auth, node_fields):
         # Update node state
         if node_fields.has_key('boot_state'):
@@ -59,5 +61,6 @@ class BootUpdateNode(Method):
             nodenetwork.sync(commit = False)
 
         self.caller.sync(commit = True)
+       self.message = "Node updated: %s" % ", ".join(node_fields.keys())
 
         return 1