From c4645f142a54b0f12e2c6c6f96556cb77cd01d1a Mon Sep 17 00:00:00 2001 From: Bruno Cornec Date: Thu, 24 Oct 2019 01:04:57 +0200 Subject: [PATCH] Fix monitor_sleep default initialization Change-Id: I231211439d175a773df13e25fd11a47cb9c3d99a --- redfish-client/redfish-client | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redfish-client/redfish-client b/redfish-client/redfish-client index 334338f..82b2988 100755 --- a/redfish-client/redfish-client +++ b/redfish-client/redfish-client @@ -363,7 +363,9 @@ if __name__ == '__main__': # Initialize Template system (jinja2) templates_path = config.get("redfish-client", "templates_path") - dml = float(config.get("redfish-client", "monitor_loop", DEFMONITORLOOP)) + dml = float(config.get("redfish-client", "monitor_loop")) + if dml is None: + dml = DEFMONITORLOOP logger.debug("Initialize template system") jinja2_env = jinja2.Environment( loader=jinja2.FileSystemLoader(templates_path))