Merge this change into 4.2 branch to allow add-node wizard to work
authorStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 31 Dec 2008 21:44:58 +0000 (21:44 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 31 Dec 2008 21:44:58 +0000 (21:44 +0000)
immediately.

PLC/Methods/BootUpdateNode.py

index 52381cb..05c886d 100644 (file)
@@ -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