Merge "Fix monitor_sleep default initialization"

This commit is contained in:
Zuul 2019-10-23 23:58:57 +00:00 committed by Gerrit Code Review
commit b2e331db33

View File

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