Skip to content

Commit

Permalink
Remove unnecessary file.seek call
Browse files Browse the repository at this point in the history
  • Loading branch information
Megan Wilhite authored and s0undt3ch committed Sep 14, 2022
1 parent 8b385b9 commit b271eab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion salt/modules/cmdmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b271eab

Please sign in to comment.