Fix monitor_sleep default initialization

Change-Id: I231211439d175a773df13e25fd11a47cb9c3d99a
This commit is contained in:
Bruno Cornec 2019-10-24 01:04:57 +02:00
parent f55ff9d1e2
commit c4645f142a

View File

@ -363,7 +363,9 @@ if __name__ == '__main__':
# Initialize Template system (jinja2) # Initialize Template system (jinja2)
templates_path = config.get("redfish-client", "templates_path") 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") logger.debug("Initialize template system")
jinja2_env = jinja2.Environment( jinja2_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(templates_path)) loader=jinja2.FileSystemLoader(templates_path))