This commit was manufactured by cvs2svn to create branch
[plcapi.git] / PLC / Methods / DeleteNodeFromPCU.py
index b51b3db..cf7f93f 100644 (file)
@@ -25,6 +25,8 @@ class DeleteNodeFromPCU(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, node_id_or_hostname, pcu_id):
         # Get node
@@ -52,9 +54,13 @@ class DeleteNodeFromPCU(Method):
                 raise PLCPermissionDenied, "Not allowed to update that PCU"
        
        # Removed node from PCU
+       
         if node['node_id'] in pcu['node_ids']:
             pcu.remove_node(node)
 
+       # Logging variables
        self.object_ids = [pcu['pcu_id']]
-        
+       self.message = 'Node %d removed from PCU %d' % \
+               (node['node_id'], pcu['pcu_id']) 
+       
        return 1