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
- added logging variable 'object_type'
[plcapi.git]
/
PLC
/
Methods
/
AdmGetNodeGroupNodes.py
diff --git
a/PLC/Methods/AdmGetNodeGroupNodes.py
b/PLC/Methods/AdmGetNodeGroupNodes.py
index
2daed59
..
857e1b5
100644
(file)
--- a/
PLC/Methods/AdmGetNodeGroupNodes.py
+++ b/
PLC/Methods/AdmGetNodeGroupNodes.py
@@
-13,6
+13,8
@@
class AdmGetNodeGroupNodes(Method):
status = "deprecated"
status = "deprecated"
+ object_type = 'Node'
+
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
@@
-30,7
+32,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']