git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3347ed4
)
Merge this change into 4.2 branch to allow add-node wizard to work
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Wed, 31 Dec 2008 21:44:58 +0000
(21:44 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Wed, 31 Dec 2008 21:44:58 +0000
(21:44 +0000)
immediately.
PLC/Methods/BootUpdateNode.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/BootUpdateNode.py
b/PLC/Methods/BootUpdateNode.py
index
52381cb
..
05c886d
100644
(file)
--- a/
PLC/Methods/BootUpdateNode.py
+++ b/
PLC/Methods/BootUpdateNode.py
@@
-58,7
+58,12
@@
class BootUpdateNode(Method):
nodenetwork.update(nodenetwork_fields)
nodenetwork.sync(commit = False)
+ # indicate that node has booted & contacted PLC.
+ if isinstance(self.caller, Node):
+ node = self.caller
+ node.update_last_contact()
+
self.caller.sync(commit = True)
- self.message = "Node updated: %s" % ", ".join(node_fields.keys())
+
self.message = "Node updated: %s" % ", ".join(node_fields.keys())
return 1