git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge changes from HEAD
[plcapi.git]
/
PLC
/
Methods
/
AdmGetNodeGroupNodes.py
diff --git
a/PLC/Methods/AdmGetNodeGroupNodes.py
b/PLC/Methods/AdmGetNodeGroupNodes.py
index
ab9aaf2
..
51c392a
100644
(file)
--- 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.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
-from PLC.Auth import
Password
Auth
+from PLC.Auth import Auth
from PLC.NodeGroups import NodeGroup, NodeGroups
class AdmGetNodeGroupNodes(Method):
"""
from PLC.NodeGroups import NodeGroup, NodeGroups
class AdmGetNodeGroupNodes(Method):
"""
+ Deprecated. See GetNodeGroups.
+
Returns a list of node_ids for the node group specified.
"""
Returns a list of node_ids for the node group specified.
"""
+ status = "deprecated"
+
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
-
Password
Auth(),
+ Auth(),
Mixed(NodeGroup.fields['nodegroup_id'],
NodeGroup.fields['name'])
]
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
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']
# Return the list of node_ids
return nodegroup['node_ids']