Lint fixes

This commit is contained in:
Ric Klaren 2017-09-22 13:55:58 -05:00
parent 235bec492e
commit 88530c4cb6

View file

@ -100,7 +100,8 @@ __virtualname__ = 'libvirt'
# Set up logging
log = logging.getLogger(__name__)
def libvirtErrorHandler(ctx, error):
def libvirt_error_handler(ctx, error): # pylint: disable=unused-argument
'''
Redirect stderr prints from libvirt to salt logging.
'''
@ -108,7 +109,8 @@ def libvirtErrorHandler(ctx, error):
if HAS_LIBVIRT:
libvirt.registerErrorHandler(f=libvirtErrorHandler, ctx=None)
libvirt.registerErrorHandler(f=libvirt_error_handler, ctx=None)
def __virtual__():
'''