]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2883] spec_file_name argument of Counters class is reqiured
authorNaoki Kambe <kambe@jprs.co.jp>
Wed, 7 Aug 2013 09:58:34 +0000 (18:58 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Thu, 8 Aug 2013 08:39:55 +0000 (17:39 +0900)
src/lib/python/isc/statistics/counters.py
src/lib/python/isc/statistics/dns.py

index 44764422601cded856a2a94a4f95f239e8ad0c2d..d1922ee31531b2686a9a8ffe3b03611c83059e78 100644 (file)
@@ -165,14 +165,13 @@ class Counters():
     timers can be temporarily disabled.  If disabled, counter values are
     not changed even if methods to update them are invoked."""
 
-    def __init__(self, spec_file_name=None):
+    def __init__(self, spec_file_name):
         """A constructor for the Counters class. A path to the spec file
-        can be specified in spec_file_name. Statistics data based on
-        statistics spec can be accumulated if spec_file_name is
+        can be specified in spec_file_name, which is required. Statistics data
+        based on statistics spec can be accumulated if spec_file_name is
         specified. If omitted, a default statistics spec is used. The
         default statistics spec is defined in a hidden class named
-        _Statistics(). But the hidden class won't be used and
-        spec_file_name will be required in the future release.
+        _Statistics().
         """
         self._zones_item_list = []
         self._start_time = {}
index e563d9937e82e142602d8241d442eb2230af2445..2cd5fb6fe334ae579eeee56deebc90312ebf8d94 100644 (file)
@@ -120,7 +120,7 @@ class Counters(counters.Counters):
     # zone names are contained under this dirname in the spec file.
     _perzone_prefix = 'zones'
 
-    def __init__(self, spec_file_name=None):
+    def __init__(self, spec_file_name):
         """If the item `zones` is defined in the spec file, it obtains a
         list of counter names under it when initiating.  For behaviors
         other than this, see documentation for