take out the code that computes a new key - for use by the dummynet boot medium creat...
[plcapi.git] / PLC / Methods / DeleteConfFileFromNode.py
index 43c3e90..50b08e6 100644 (file)
@@ -24,9 +24,6 @@ class DeleteConfFileFromNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'DeleteFrom'
-    object_type = 'ConfFile'
-
     def call(self, auth, conf_file_id, node_id_or_hostname):
        # Get configuration file
         conf_files = ConfFiles(self.api, [conf_file_id])
@@ -45,6 +42,7 @@ class DeleteConfFileFromNode(Method):
             conf_file.remove_node(node)
 
         # Log affected objects
-        self.object_ids = [conf_file_id, node['node_id']]
+        self.event_objects = {'ConfFile': [conf_file_id], 
+                             'Node': [node['node_id']]}
 
         return 1