diff options
author | Martin Basti <mbasti@redhat.com> | 2016-02-25 13:46:33 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2016-03-02 14:57:36 +0100 |
commit | 72d5499c5a902c860c5496ee6e604526672e5777 (patch) | |
tree | 254cab47fdfe006362f3b67b492c6ade8d546b26 /ipaserver/install/installutils.py | |
parent | c68e9510d03abb75d353e209ea32ac9d1ed362bc (diff) | |
download | freeipa-72d5499c5a902c860c5496ee6e604526672e5777.tar.gz freeipa-72d5499c5a902c860c5496ee6e604526672e5777.tar.xz freeipa-72d5499c5a902c860c5496ee6e604526672e5777.zip |
pylint: supress false positive no-member errors
pylint 1.5 prints many false positive no-member errors which are
supressed by this commit.
https://fedorahosted.org/freeipa/ticket/5615
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r-- | ipaserver/install/installutils.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 4489cd80b..071242654 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -166,7 +166,9 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True): except socket.gaierror: pass except socket.error as e: - root_logger.debug('socket.gethostbyaddr() error: %d: %s' % (e.errno, e.strerror)) + root_logger.debug( + 'socket.gethostbyaddr() error: %d: %s', + e.errno, e.strerror) # pylint: disable=no-member if no_host_dns: print("Warning: skipping DNS resolution of host", host_name) @@ -733,7 +735,10 @@ def run_script(main_function, operation_name, log_file_name=None, try: return_value = main_function() except BaseException as e: - if isinstance(e, SystemExit) and (e.code is None or e.code == 0): + if ( + isinstance(e, SystemExit) and + (e.code is None or e.code == 0) # pylint: disable=no-member + ): # Not an error after all root_logger.info('The %s command was successful', operation_name) |