From: Stephen Soltesz Date: Wed, 31 Dec 2008 21:44:58 +0000 (+0000) Subject: Merge this change into 4.2 branch to allow add-node wizard to work X-Git-Tag: PLCAPI-4.2-14~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=da999493627bbdb5ac8cab53477f0bde1a022e7b;p=plcapi.git Merge this change into 4.2 branch to allow add-node wizard to work immediately. --- 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