is specified, only the specified details will be returned.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
accepts = [
Auth(),
Mixed([Mixed(NodeGroup.fields['nodegroup_id'],
- NodeGroup.fields['name'])],
+ NodeGroup.fields['groupname'])],
Filter(NodeGroup.fields)),
Parameter([str], "List of fields to return", nullok = True)
]
returns = [NodeGroup.fields]
-
+
def call(self, auth, nodegroup_filter = None, return_fields = None):
- return NodeGroups(self.api, nodegroup_filter, return_fields)
+ return NodeGroups(self.api, nodegroup_filter, return_fields)