X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FBootUpdateNode.py;h=52381cbe0f0d9c709ab718f5b70ff93dc7a9733b;hb=d9c2eb1238bf984b850b86c1e8859bc0937dd247;hp=271da9f245e7dfafc9a0193b98d2bd74f2454968;hpb=dd6f6871abdf5412d908dc31777ce88b09192efe;p=plcapi.git diff --git a/PLC/Methods/BootUpdateNode.py b/PLC/Methods/BootUpdateNode.py index 271da9f..52381cb 100644 --- a/PLC/Methods/BootUpdateNode.py +++ b/PLC/Methods/BootUpdateNode.py @@ -1,7 +1,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed -from PLC.Auth import Auth, BootAuth +from PLC.Auth import Auth, BootAuth, SessionAuth from PLC.Nodes import Node, Nodes from PLC.NodeNetworks import NodeNetwork, NodeNetworks @@ -22,7 +22,7 @@ class BootUpdateNode(Method): nodenetwork_fields = dict(filter(can_update, NodeNetwork.fields.items())) accepts = [ - BootAuth(), + Mixed(BootAuth(), SessionAuth()), {'boot_state': Node.fields['boot_state'], 'primary_network': nodenetwork_fields, 'ssh_host_key': Node.fields['ssh_rsa_key']}