Fix incorrect cast of None

This commit is contained in:
Joshua Boniface 2023-12-14 16:00:53 -05:00
parent f1249452e5
commit c64e888d30
1 changed files with 1 additions and 1 deletions

View File

@ -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),