mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38474 from cachedout/key_loop
Allow an existing ioloop to be passed to salt-key
This commit is contained in:
commit
59f2560d88
1 changed files with 4 additions and 2 deletions
|
@ -533,7 +533,7 @@ class Key(object):
|
|||
REJ = 'minions_rejected'
|
||||
DEN = 'minions_denied'
|
||||
|
||||
def __init__(self, opts):
|
||||
def __init__(self, opts, io_loop=None):
|
||||
self.opts = opts
|
||||
kind = self.opts.get('__role', '') # application kind
|
||||
if kind not in kinds.APPL_KINDS:
|
||||
|
@ -545,7 +545,9 @@ class Key(object):
|
|||
opts['sock_dir'],
|
||||
opts['transport'],
|
||||
opts=opts,
|
||||
listen=False)
|
||||
listen=False,
|
||||
io_loop=io_loop
|
||||
)
|
||||
|
||||
def _check_minions_directories(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue