From da999493627bbdb5ac8cab53477f0bde1a022e7b Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 31 Dec 2008 21:44:58 +0000 Subject: [PATCH] Merge this change into 4.2 branch to allow add-node wizard to work immediately. --- PLC/Methods/BootUpdateNode.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PLC/Methods/BootUpdateNode.py b/PLC/Methods/BootUpdateNode.py index 52381cbe..05c886d4 100644 --- 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 -- 2.47.0