summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-02-24 18:48:29 +0100
committerMartin Basti <mbasti@redhat.com>2016-02-25 13:54:20 +0100
commit5c33edcd11c466df59dbd13aac5e1b42ffa6fbb7 (patch)
tree53d92232f2859be2acaf4fb4f705f9e052cc8f58
parent0d39abddc27b0c348131dc3d0f3c5c538cd5f0b5 (diff)
downloadfreeipa-5c33edcd11c466df59dbd13aac5e1b42ffa6fbb7.tar.gz
freeipa-5c33edcd11c466df59dbd13aac5e1b42ffa6fbb7.tar.xz
freeipa-5c33edcd11c466df59dbd13aac5e1b42ffa6fbb7.zip
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>
-rw-r--r--pylint_plugins.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/pylint_plugins.py b/pylint_plugins.py
index f64c426fd..c3042f4a4 100644
--- a/pylint_plugins.py
+++ b/pylint_plugins.py
@@ -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,