mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove redundant run_func from salt.master.MWorker._handle_aes
This commit is contained in:
parent
06e325f607
commit
8a4228e5b3
1 changed files with 1 additions and 4 deletions
|
@ -1269,11 +1269,8 @@ class MWorker(salt.utils.process.SignalHandlingProcess):
|
|||
start = time.time()
|
||||
self.stats[cmd]["runs"] += 1
|
||||
|
||||
def run_func(data):
|
||||
return self.aes_funcs.run_func(data["cmd"], data)
|
||||
|
||||
with salt.utils.ctx.request_context({"data": data, "opts": self.opts}):
|
||||
ret = run_func(data)
|
||||
ret = self.aes_funcs.run_func(data["cmd"], data)
|
||||
|
||||
if self.opts["master_stats"]:
|
||||
self._post_stats(start, cmd)
|
||||
|
|
Loading…
Add table
Reference in a new issue