git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added 'message' instance variable (high level description of this event)
[plcapi.git]
/
PLC
/
Methods
/
AdmAddNode.py
diff --git
a/PLC/Methods/AdmAddNode.py
b/PLC/Methods/AdmAddNode.py
index
77bc9f1
..
dda5c99
100644
(file)
--- a/
PLC/Methods/AdmAddNode.py
+++ b/
PLC/Methods/AdmAddNode.py
@@
-3,7
+3,7
@@
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Nodes import Node, Nodes
from PLC.Sites import Site, Sites
from PLC.Parameter import Parameter, Mixed
from PLC.Nodes import Node, Nodes
from PLC.Sites import Site, Sites
-from PLC.Auth import
Password
Auth
+from PLC.Auth import Auth
from PLC.Methods.AddNode import AddNode
can_update = lambda (field, value): field in \
from PLC.Methods.AddNode import AddNode
can_update = lambda (field, value): field in \
@@
-19,7
+19,7
@@
class AdmAddNode(AddNode):
node_fields = dict(filter(can_update, Node.fields.items()))
accepts = [
node_fields = dict(filter(can_update, Node.fields.items()))
accepts = [
-
Password
Auth(),
+ Auth(),
Site.fields['site_id'],
Node.fields['hostname'],
Node.fields['boot_state'],
Site.fields['site_id'],
Node.fields['hostname'],
Node.fields['boot_state'],