mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint fixes
This commit is contained in:
parent
235bec492e
commit
88530c4cb6
1 changed files with 4 additions and 2 deletions
|
@ -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__():
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue