mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: remove arguments-renamed warnings
Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
@@ -545,6 +545,7 @@ class group_find(LDAPSearch):
|
||||
),
|
||||
)
|
||||
|
||||
# pylint: disable-next=arguments-renamed
|
||||
def pre_callback(self, ldap, filter, attrs_list, base_dn, scope,
|
||||
criteria=None, **options):
|
||||
assert isinstance(base_dn, DN)
|
||||
|
||||
@@ -177,7 +177,7 @@ class metaobject(MetaObject):
|
||||
def _iter_params(self, metaobj):
|
||||
raise NotImplementedError()
|
||||
|
||||
def _get_obj(self, metaobj, all=False, **kwargs):
|
||||
def _get_obj(self, metaobj, all=False, **kwargs): # pylint: disable=W0237
|
||||
obj = dict()
|
||||
obj['name'] = unicode(metaobj.name)
|
||||
obj['version'] = unicode(metaobj.version)
|
||||
@@ -470,6 +470,7 @@ class BaseParam(BaseMetaObject):
|
||||
def parent(self):
|
||||
raise AttributeError('parent')
|
||||
|
||||
# pylint: disable-next=arguments-renamed
|
||||
def _split_search_args(self, parent_name, criteria=None):
|
||||
return [parent_name], criteria
|
||||
|
||||
@@ -495,6 +496,7 @@ class BaseParamRetrieve(BaseParamMethod, BaseMetaRetrieve):
|
||||
|
||||
|
||||
class BaseParamSearch(BaseParamMethod, BaseMetaSearch):
|
||||
# pylint: disable-next=arguments-renamed
|
||||
def execute(self, command, criteria=None, **options):
|
||||
result = list(self.obj.search(command, criteria, **options))
|
||||
return dict(result=result, count=len(result), truncated=False)
|
||||
|
||||
@@ -101,7 +101,7 @@ class IdpTracker(Tracker):
|
||||
""" Make function that finds idp using idp-find """
|
||||
return self.make_command('idp_find', *args, **kwargs)
|
||||
|
||||
def check_find(self, result, all=False, pkey_only=False, raw=False):
|
||||
def check_find(self, result, all=False, raw=False, pkey_only=False):
|
||||
""" Check idp-find command result """
|
||||
if all:
|
||||
expected = self.filter_attrs(self.find_all_keys)
|
||||
|
||||
@@ -312,7 +312,7 @@ class UserTracker(CertmapdataMixin, KerberosAliasMixin, Tracker):
|
||||
result=expected,
|
||||
), result)
|
||||
|
||||
def check_find(self, result, all=False, pkey_only=False, raw=False,
|
||||
def check_find(self, result, all=False, raw=False, pkey_only=False,
|
||||
expected_override=None):
|
||||
""" Check 'user-find' command result """
|
||||
if all:
|
||||
|
||||
Reference in New Issue
Block a user