try fixing: BootUpdateNode: Invalid argument: Timestamp None - unsupported type ...
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 12 Jul 2010 13:35:12 +0000 (15:35 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 12 Jul 2010 13:35:12 +0000 (15:35 +0200)
PLC/Methods/BootUpdateNode.py

index ca18886..4e81845 100644 (file)
@@ -89,7 +89,7 @@ class BootUpdateNode(Method):
 
         current_time = int(time.time())
         # if last_pcu_reboot is within 20 minutes of current_time, accept that the PCU is responsible
-        if Timestamp.cast_long(node['last_pcu_reboot']) >= current_time - 60*20:
+        if node['last_pcu_reboot'] and Timestamp.cast_long(node['last_pcu_reboot']) >= current_time - 60*20:
             node.update_last_pcu_confirmation(commit=False)
 
         node.sync(commit = True)