mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
Pylint: add missing attributes of errors to definitions
Attributes are added to IPA error objects dynamicaly and pylint is not able to handle it itself. Add missing attributes to definitions in pylint plugin. https://fedorahosted.org/freeipa/ticket/5615 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -96,6 +96,39 @@ ipa_class_members = {
|
||||
'startup_traceback',
|
||||
'verbose'
|
||||
] + LOGGING_ATTRS,
|
||||
'ipalib.errors.ACIError': [
|
||||
'info',
|
||||
],
|
||||
'ipalib.errors.ConversionError': [
|
||||
'error',
|
||||
],
|
||||
'ipalib.errors.DatabaseError': [
|
||||
'desc',
|
||||
],
|
||||
'ipalib.errors.NetworkError': [
|
||||
'error',
|
||||
],
|
||||
'ipalib.errors.NotFound': [
|
||||
'reason',
|
||||
],
|
||||
'ipalib.errors.PublicError': [
|
||||
'msg',
|
||||
'strerror',
|
||||
],
|
||||
'ipalib.errors.SingleMatchExpected': [
|
||||
'found',
|
||||
],
|
||||
'ipalib.errors.SkipPluginModule': [
|
||||
'reason',
|
||||
],
|
||||
'ipalib.errors.ValidationError': [
|
||||
'error',
|
||||
],
|
||||
'ipalib.messages.PublicMessage': [
|
||||
'msg',
|
||||
'strerror',
|
||||
'type',
|
||||
],
|
||||
'ipalib.parameters.Param': [
|
||||
'cli_name',
|
||||
'cli_short_name',
|
||||
@@ -162,6 +195,9 @@ ipa_class_members = {
|
||||
'ipalib.session.AuthManager': LOGGING_ATTRS,
|
||||
'ipalib.session.SessionAuthManager': LOGGING_ATTRS,
|
||||
'ipalib.session.SessionManager': LOGGING_ATTRS,
|
||||
'ipalib.util.ForwarderValidationError': [
|
||||
'msg',
|
||||
],
|
||||
'ipaserver.install.ldapupdate.LDAPUpdate': LOGGING_ATTRS,
|
||||
'ipaserver.rpcserver.KerberosSession': [
|
||||
fake_api,
|
||||
|
||||
Reference in New Issue
Block a user