merge from trunk
[plcapi.git] / PLC / Methods / DeleteNode.py
index 48bff2e..bc92718 100644 (file)
@@ -24,7 +24,6 @@ class DeleteNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
-
     def call(self, auth, node_id_or_hostname):
         # Get account information
         nodes = Nodes(self.api, [node_id_or_hostname])
@@ -47,7 +46,7 @@ class DeleteNode(Method):
         node.delete()
 
        # Logging variables
-       self.object_ids = [node['node_id']]
+       self.event_objects = {'Node': [node['node_id']]}
        self.message = "Node %d deleted" % node['node_id']
 
         return 1