X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmGetNodeGroupNodes.py;h=51c392a0419936b1c9be37d9021ef113da551c25;hb=9fd8cf39d8acdb32136fd4d1f97f53d77275f4cb;hp=ab9aaf2bc8593e6c061dc9c416ed73f6c23b2afd;hpb=00af587f2be402755e7cf10e11eb95dd0ab137bc;p=plcapi.git diff --git a/PLC/Methods/AdmGetNodeGroupNodes.py b/PLC/Methods/AdmGetNodeGroupNodes.py index ab9aaf2..51c392a 100644 --- a/PLC/Methods/AdmGetNodeGroupNodes.py +++ b/PLC/Methods/AdmGetNodeGroupNodes.py @@ -1,18 +1,22 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth from PLC.NodeGroups import NodeGroup, NodeGroups class AdmGetNodeGroupNodes(Method): """ + Deprecated. See GetNodeGroups. + Returns a list of node_ids for the node group specified. """ + status = "deprecated" + roles = ['admin', 'pi', 'user', 'tech'] accepts = [ - PasswordAuth(), + Auth(), Mixed(NodeGroup.fields['nodegroup_id'], NodeGroup.fields['name']) ] @@ -26,7 +30,7 @@ class AdmGetNodeGroupNodes(Method): raise PLCInvalidArgument, "No such node group" # Get the info for the node group specified - nodegroup = nodegroups.values()[0] + nodegroup = nodegroups[0] # Return the list of node_ids return nodegroup['node_ids']