Commit ac06a06d authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac930] modify the update_modues function There is no part of

statistics category in the spec file of a module which has no
statistics data.
parent 611d0300
......@@ -216,8 +216,7 @@ class Stats:
(rcode, value) = isc.config.ccsession.parse_answer(answer)
if rcode == 0:
for mod in value:
spec = { "module_name" : mod,
"statistics" : [] }
spec = { "module_name" : mod }
if value[mod] and type(value[mod]) is list:
spec["statistics"] = value[mod]
modules[mod] = isc.config.module_spec.ModuleSpec(spec)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment