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
Fix name -> tagname. Thanks to Elliot Jaffe.
[plcapi.git]
/
PLC
/
Methods
/
BootUpdateNode.py
diff --git
a/PLC/Methods/BootUpdateNode.py
b/PLC/Methods/BootUpdateNode.py
index
9da550f
..
4589d51
100644
(file)
--- a/
PLC/Methods/BootUpdateNode.py
+++ b/
PLC/Methods/BootUpdateNode.py
@@
-59,7
+59,12
@@
class BootUpdateNode(Method):
interface.update(interface_fields)
interface.sync(commit = False)
interface.update(interface_fields)
interface.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.caller.sync(commit = True)
- self.message = "Node updated: %s" % ", ".join(node_fields.keys())
+
self.message = "Node updated: %s" % ", ".join(node_fields.keys())
return 1
return 1