Skip to content

Commit

Permalink
Remove redundant run_func from salt.master.MWorker._handle_aes
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhestkov authored and dwoz committed May 22, 2024
1 parent 06e325f commit 8a4228e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions salt/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,11 +1269,8 @@ def _handle_aes(self, data):
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)
Expand Down

0 comments on commit 8a4228e

Please sign in to comment.