Parcourir la 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 il y a 13 ans
Parent
commit
4c2732cbf0
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/bin/stats/stats.py.in

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

@@ -208,8 +208,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)