mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fix pylint
This commit is contained in:
parent
878b21662e
commit
39bb623bdc
@ -70,8 +70,8 @@ from __future__ import absolute_import
|
|||||||
|
|
||||||
# Import salt libs
|
# Import salt libs
|
||||||
import salt.loader
|
import salt.loader
|
||||||
import salt.utils.event
|
import salt.ext.six as six
|
||||||
from salt.utils.event import tagify
|
from salt.utils.event import get_event, tagify
|
||||||
from salt.exceptions import SaltInvocationError
|
from salt.exceptions import SaltInvocationError
|
||||||
|
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ def process_queue(queue, quantity=1, backend='sqlite'):
|
|||||||
salt-run queue.process_queue myqueue all backend=sqlite
|
salt-run queue.process_queue myqueue all backend=sqlite
|
||||||
'''
|
'''
|
||||||
# get ready to send an event
|
# get ready to send an event
|
||||||
event = salt.utils.event.get_event(
|
event = get_event(
|
||||||
'master',
|
'master',
|
||||||
__opts__['sock_dir'],
|
__opts__['sock_dir'],
|
||||||
__opts__['transport'],
|
__opts__['transport'],
|
||||||
|
@ -20,11 +20,11 @@ ensure_in_syspath('../../')
|
|||||||
|
|
||||||
# Import Salt Libs
|
# Import Salt Libs
|
||||||
from salt.runners import queue as queue_mod
|
from salt.runners import queue as queue_mod
|
||||||
from salt.queues import pgjsonb_queue
|
|
||||||
|
|
||||||
queue_mod.__opts__ = {'sock_dir': '/var/run/salt/master', 'transport': 'zeromq'}
|
queue_mod.__opts__ = {'sock_dir': '/var/run/salt/master', 'transport': 'zeromq'}
|
||||||
queue_mod.__salt__ = {}
|
queue_mod.__salt__ = {}
|
||||||
|
|
||||||
|
|
||||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||||
class QueueTest(TestCase):
|
class QueueTest(TestCase):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user