- define/modify logging variables
[plcapi.git] / PLC / Methods / DeleteNode.py
index c4a2812..c6023c5 100644 (file)
@@ -24,6 +24,9 @@ class DeleteNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    event_type = 'Delete'
+    object_type = 'Node'
+
     def call(self, auth, node_id_or_hostname):
         # Get account information
         nodes = Nodes(self.api, [node_id_or_hostname])
@@ -42,5 +45,6 @@ class DeleteNode(Method):
                 raise PLCPermissionDenied, "Not allowed to delete nodes from specified site"
 
         node.delete()
+       self.object_ids = [node['node_id']]
 
         return 1