From: Tony Mack Date: Wed, 20 Sep 2006 14:38:54 +0000 (+0000) Subject: - fixed exception response X-Git-Tag: pycurl-7_13_1~734 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ce976404159540ec9982a297ab1025e84223d463;p=plcapi.git - fixed exception response --- diff --git a/PLC/Methods/AdmGetNodeGroupNodes.py b/PLC/Methods/AdmGetNodeGroupNodes.py index 66bc17cc..b641662f 100644 --- a/PLC/Methods/AdmGetNodeGroupNodes.py +++ b/PLC/Methods/AdmGetNodeGroupNodes.py @@ -23,10 +23,6 @@ class AdmGetNodeGroupNodes(Method): returns = [NodeGroup.join_fields['node_ids']] - def __init__(self, *args, **kwds): - Method.__init__(self, *args, **kwds) - # Update documentation with list of default fields returned - self.__doc__ += os.linesep.join(Site.default_fields.keys()) def call(self, auth, nodegroup_id_or_name): # Authenticated function @@ -35,9 +31,9 @@ class AdmGetNodeGroupNodes(Method): # Get nodes in this nodegroup nodegroup = NodeGroups(self.api, [nodegroup_id_or_name]) - # make sure sites are found + # make sure nodegroup is found if not nodegroup: - raise PLCInvalidArgument, "No such site" + raise PLCInvalidArgument, "No such nodegroup" #get the info for the node group specified nodegroup_values = nodegroup.values()[0]