Browse Source

[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.

Naoki Kambe 13 years ago
parent
commit
ac06a06d1d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/bin/stats/stats.py.in

+ 1 - 2
src/bin/stats/stats.py.in

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