diff --git a/salt/master.py b/salt/master.py index b195cd5a9e..59a9802773 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1106,11 +1106,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)