-# $Id$
-# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
# Get configuration file
conf_files = ConfFiles(self.api, [conf_file_id])
if not conf_files:
- raise PLCInvalidArgument, "No such configuration file"
+ raise PLCInvalidArgument("No such configuration file")
conf_file = conf_files[0]
# Get nodegroup
nodegroups = NodeGroups(self.api, [nodegroup_id_or_name])
if not nodegroups:
- raise PLCInvalidArgument, "No such nodegroup"
+ raise PLCInvalidArgument("No such nodegroup")
nodegroup = nodegroups[0]
# Link configuration file to nodegroup