From 5c33edcd11c466df59dbd13aac5e1b42ffa6fbb7 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Wed, 24 Feb 2016 18:48:29 +0100 Subject: 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 --- pylint_plugins.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'pylint_plugins.py') 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, -- cgit