From c64e888d30b65425aeb3a3d13cb0f94b0f91ef3f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 14 Dec 2023 16:00:53 -0500 Subject: [PATCH] Fix incorrect cast of None --- daemon-common/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/node.py b/daemon-common/node.py index 0e30479f..265b1db7 100644 --- a/daemon-common/node.py +++ b/daemon-common/node.py @@ -71,7 +71,7 @@ def getNodeHealthDetails(zkhandler, node_name, node_health_plugins): ) = tuple(all_plugin_data[pos_start:pos_end]) plugin_output = { "name": plugin, - "last_run": int(plugin_last_run), + "last_run": int(plugin_last_run) if plugin_last_run is not None else None, "health_delta": int(plugin_health_delta), "message": plugin_message, "data": json.loads(plugin_data),