log getbootmedium calls
[plcapi.git] / PLC / Methods / GetNodeGroups.py
index 478eb99..f0d1a45 100644 (file)
@@ -1,3 +1,4 @@
+# $Id#
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -14,12 +15,12 @@ class GetNodeGroups(Method):
     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)
         ]