Skip to content

Commit b2e331d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix monitor_sleep default initialization"
2 parents cff996a + c4645f1 commit b2e331d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redfish-client/redfish-client

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ if __name__ == '__main__':
363363

364364
# Initialize Template system (jinja2)
365365
templates_path = config.get("redfish-client", "templates_path")
366-
dml = float(config.get("redfish-client", "monitor_loop", DEFMONITORLOOP))
366+
dml = float(config.get("redfish-client", "monitor_loop"))
367+
if dml is None:
368+
dml = DEFMONITORLOOP
367369
logger.debug("Initialize template system")
368370
jinja2_env = jinja2.Environment(
369371
loader=jinja2.FileSystemLoader(templates_path))

0 commit comments

Comments
 (0)