(most) all functions now take SessionAuth in addition to PasswordAuth
[plcapi.git] / PLC / Methods / AdmDeleteNodeNetwork.py
index dd9f386..8750104 100644 (file)
@@ -1,7 +1,7 @@
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 from PLC.Nodes import Node, Nodes
 from PLC.NodeNetworks import NodeNetwork, NodeNetworks
 from PLC.Methods.DeleteNodeNetwork import DeleteNodeNetwork
@@ -14,7 +14,7 @@ class AdmDeleteNodeNetwork(DeleteNodeNetwork):
     status = "deprecated"
 
     accepts = [
-        PasswordAuth(),
+        Auth(),
         Mixed(Node.fields['node_id'],
              Node.fields['hostname']),
        Mixed(NodeNetwork.fields['nodenetwork_id'],