X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetNodeGroups.py;h=d5cb8eb777d6f2cfa451e6e6f163dbdb2385b1ee;hb=7ff3079ce042525acbf00e0d4fe555e8988c128d;hp=f4927efc5db887a2528cfd84785a263f8799b6a9;hpb=03f03eb21ef66571e98d61c0b0c56bdb861062a7;p=plcapi.git diff --git a/PLC/Methods/GetNodeGroups.py b/PLC/Methods/GetNodeGroups.py index f4927ef..d5cb8eb 100644 --- a/PLC/Methods/GetNodeGroups.py +++ b/PLC/Methods/GetNodeGroups.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -19,12 +21,12 @@ class GetNodeGroups(Method): accepts = [ Auth(), Mixed([Mixed(NodeGroup.fields['nodegroup_id'], - NodeGroup.fields['name'])], + NodeGroup.fields['groupname'])], Filter(NodeGroup.fields)), Parameter([str], "List of fields to return", nullok = True) ] returns = [NodeGroup.fields] - + def call(self, auth, nodegroup_filter = None, return_fields = None): - return NodeGroups(self.api, nodegroup_filter, return_fields) + return NodeGroups(self.api, nodegroup_filter, return_fields)