Merge pull request #18543 from whiteinge/raet-compat-event-listen

Switch to RAET-compatible event listener
This commit is contained in:
Thomas S Hatch 2014-12-01 10:16:46 -07:00
commit e2a0c0c754

View File

@ -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):
'''