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
- re-enable return_fields specification
[plcapi.git]
/
PLC
/
Methods
/
UpdateNodeGroup.py
diff --git
a/PLC/Methods/UpdateNodeGroup.py
b/PLC/Methods/UpdateNodeGroup.py
index
6ef1146
..
f655c67
100644
(file)
--- a/
PLC/Methods/UpdateNodeGroup.py
+++ b/
PLC/Methods/UpdateNodeGroup.py
@@
-34,7
+34,7
@@
class UpdateNodeGroup(Method):
nodegroups = NodeGroups(self.api, [nodegroup_id_or_name])
if not nodegroups:
raise PLCInvalidArgument, "No such nodegroup"
- nodegroup = nodegroups
.values()
[0]
+ nodegroup = nodegroups[0]
nodegroup.update(nodegroup_fields)
nodegroup.sync()