mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #18543 from whiteinge/raet-compat-event-listen
Switch to RAET-compatible event listener
This commit is contained in:
commit
e2a0c0c754
@ -45,7 +45,7 @@ class RunnerClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
|
||||
def __init__(self, opts):
|
||||
self.opts = opts
|
||||
self.functions = salt.loader.runner(opts) # Must be self.functions for mixin to work correctly :-/
|
||||
self.event = salt.utils.event.MasterEvent(self.opts['sock_dir'])
|
||||
self.event = salt.utils.event.get_event('master', self.opts['sock_dir'], self.opts['transport'])
|
||||
|
||||
def cmd(self, fun, arg, pub_data=None, kwarg=None):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user