]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
conf/ceph.py: do not use kwargs for CephConf's constructor
authorKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 08:52:17 +0000 (16:52 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 08:52:18 +0000 (16:52 +0800)
these is no callers which pass parameter to this constructor, so keep it
simple.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph_deploy/conf/ceph.py

index 5042404f7fb74df14926a933f77f89f9ba42e1d3..3d5f82648deb0f193e9cf575e9ad2dc434d00e32 100644 (file)
@@ -17,10 +17,9 @@ class _TrimIndentFile(object):
         return iter(self.readline, '')
 
 class CephConf(configparser.RawConfigParser):
-    def __init__(self, *args, **kwargs):
-        kwargs.setdefault('strict', False)
+    def __init__(self):
         # super() cannot be used with an old-style class
-        configparser.RawConfigParser.__init__(self, *args, **kwargs)
+        configparser.RawConfigParser.__init__(self, strict=False)
 
     def optionxform(self, s):
         s = s.replace('_', ' ')