+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
Auth(),
ConfFile.fields['conf_file_id'],
Mixed(NodeGroup.fields['nodegroup_id'],
- NodeGroup.fields['name'])
+ NodeGroup.fields['groupname'])
]
returns = Parameter(int, '1 if successful')
- event_type = 'AddTo'
- object_type = 'ConfFile'
def call(self, auth, conf_file_id, nodegroup_id_or_name):
# Get configuration file
conf_file.add_nodegroup(nodegroup)
# Log affected objects
- self.object_ids = [conf_file_id, nodegroup['nodegroup_id']]
+ self.event_objects = {'ConfFile': [conf_file_id],
+ 'NodeGroup': [nodegroup['nodegroup_id']] }
return 1