mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Pylint 1.8.3 fixes
Teach pylint more about the internals of API to fix various issues with pylint 1.8.3. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
parent
3bb3e7555d
commit
ce8ec5028a
@ -62,13 +62,22 @@ fake_backend = {'Backend': [
|
|||||||
{'wsgi_dispatch': ['mount']},
|
{'wsgi_dispatch': ['mount']},
|
||||||
]}
|
]}
|
||||||
|
|
||||||
NAMESPACE_ATTRS = ['Command', 'Object', 'Method', fake_backend, 'Updater',
|
NAMESPACE_ATTRS = ['Object', 'Method', fake_backend, 'Updater',
|
||||||
'Advice']
|
'Advice']
|
||||||
fake_api_env = {'env': [
|
fake_api_env = {
|
||||||
|
'env': [
|
||||||
'host',
|
'host',
|
||||||
'realm',
|
'realm',
|
||||||
'kinit_lifetime',
|
'kinit_lifetime',
|
||||||
]}
|
],
|
||||||
|
'Command': [
|
||||||
|
'get_plugin',
|
||||||
|
'config_show',
|
||||||
|
'host_show',
|
||||||
|
'service_show',
|
||||||
|
'user_show',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
# this is due ipaserver.rpcserver.KerberosSession where api is undefined
|
# this is due ipaserver.rpcserver.KerberosSession where api is undefined
|
||||||
fake_api = {'api': [fake_api_env] + NAMESPACE_ATTRS}
|
fake_api = {'api': [fake_api_env] + NAMESPACE_ATTRS}
|
||||||
@ -90,13 +99,17 @@ ipa_class_members = {
|
|||||||
'ipalib.config.Env': [
|
'ipalib.config.Env': [
|
||||||
{'__d': ['get']},
|
{'__d': ['get']},
|
||||||
{'__done': ['add']},
|
{'__done': ['add']},
|
||||||
'xmlrpc_uri',
|
'ca_host',
|
||||||
'validate_api',
|
'ca_install_port',
|
||||||
'startup_traceback',
|
|
||||||
'verbose',
|
|
||||||
'debug',
|
'debug',
|
||||||
'server',
|
|
||||||
{'domain': dir(str)},
|
{'domain': dir(str)},
|
||||||
|
'http_timeout',
|
||||||
|
'rpc_protocol',
|
||||||
|
'startup_traceback',
|
||||||
|
'server',
|
||||||
|
'validate_api',
|
||||||
|
'verbose',
|
||||||
|
'xmlrpc_uri',
|
||||||
],
|
],
|
||||||
'ipalib.errors.ACIError': [
|
'ipalib.errors.ACIError': [
|
||||||
'info',
|
'info',
|
||||||
|
Loading…
Reference in New Issue
Block a user