From: Tony Mack Date: Mon, 20 Aug 2007 20:24:46 +0000 (+0000) Subject: - allow SessionAuth() X-Git-Tag: PLCAPI-4.2-0~89 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5fff5c164f17e06da850fe16ffe4a4c69925ac16;p=plcapi.git - allow SessionAuth() --- diff --git a/PLC/Methods/BootUpdateNode.py b/PLC/Methods/BootUpdateNode.py index 271da9f2..52381cbe 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']}