merge changes from head
[plcapi.git] / PLC / Methods / AdmAddNodeGroup.py
index 1ecb9be..6bbb59e 100644 (file)
@@ -2,7 +2,7 @@ from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.NodeGroups import NodeGroup, NodeGroups
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 from PLC.Methods.AddNodeGroup import AddNodeGroup
 
 class AdmAddNodeGroup(AddNodeGroup):
@@ -13,10 +13,10 @@ class AdmAddNodeGroup(AddNodeGroup):
     status = "deprecated"
 
     accepts = [
-        PasswordAuth(),
+        Auth(),
         NodeGroup.fields['name'],
         NodeGroup.fields['description']
         ]
 
     def call(self, auth, name, description):
-        return AddNodeGroup.call(self, auth, name, {'description': description})
+        return AddNodeGroup.call(self, auth, {'name': name, 'description': description})