Add __init__ arg to Runner(), and call self.async (since its a subclass)

This commit is contained in:
Thomas Jackson 2014-12-31 18:03:40 -08:00
parent 33d6413e99
commit 6cd18c3641

View File

@ -103,7 +103,7 @@ class Runner(RunnerClient):
'''
Execute the salt runner interface
'''
def __init__(self):
def __init__(self, opts):
super(Runner, self).__init__(opts)
self.returners = salt.loader.returners(opts, self.functions)
self.outputters = salt.loader.outputters(opts)
@ -136,7 +136,7 @@ class Runner(RunnerClient):
low['args'] = args
low['kwargs'] = kwargs
async_pub = super(Runner, self).async(self.opts['fun'], low)
async_pub = self.async(self.opts['fun'], low)
# Run the runner!
if self.opts.get('async', False):
log.info('Running in async mode. Results of this execution may '