X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FBootUpdateNode.py;h=4e81845ec0c63854fecd74b7587b58aeaa8c4e9a;hb=6e357334b71b8bfc4755fe65a13353b60609b785;hp=ca188869baed007b8b54e67b7a6a2d253a125d03;hpb=5d8a25ab329d0c44d34645b0ddeacba2f02331eb;p=plcapi.git 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)