adds Id tag
[plcapi.git] / PLC / Methods / AdmGetNodeGroupNodes.py
index 2daed59..857e1b5 100644 (file)
@@ -13,6 +13,8 @@ class AdmGetNodeGroupNodes(Method):
 
     status = "deprecated"
 
+    object_type = 'Node'
+
     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
-       nodegroup = nodegroups.values()[0]
+       nodegroup = nodegroups[0]
 
        # Return the list of node_ids
         return nodegroup['node_ids']