From b271eab491efbf7dfa63c04297872f57d7428599 Mon Sep 17 00:00:00 2001 From: Megan Wilhite Date: Tue, 13 Sep 2022 08:45:23 -0600 Subject: [PATCH] Remove unnecessary file.seek call --- salt/modules/cmdmod.py | 1 - 1 file changed, 1 deletion(-) diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py index 708242e8ab16..a26220718ad6 100644 --- a/salt/modules/cmdmod.py +++ b/salt/modules/cmdmod.py @@ -541,7 +541,6 @@ def _run( else: env_cmd.extend(["{} python {}".format(sys.executable, fp.name)]) fp.write(py_code) - fp.seek(0) shutil.chown(fp.name, runas) msg = "env command: {}".format(env_cmd)