From: Barış Metin Date: Mon, 12 Jul 2010 13:35:12 +0000 (+0200) Subject: try fixing: BootUpdateNode: Invalid argument: Timestamp None - unsupported type ... X-Git-Tag: plcapi-5.0-13~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fa4ab2657464d14dba27e810dbdc39fc8f1ce388;hp=1c10d2b89c1a733a943b1ba9a05f5031417aff5f;p=plcapi.git try fixing: BootUpdateNode: Invalid argument: Timestamp None - unsupported type "> --- diff --git a/PLC/Methods/BootUpdateNode.py b/PLC/Methods/BootUpdateNode.py index ca18886..4e81845 100644 --- a/PLC/Methods/BootUpdateNode.py +++ b/PLC/Methods/BootUpdateNode.py @@ -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)