From 155422ff0f3465921212f13d0bc306a2c5057e6d Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 6 Nov 2013 20:23:53 +0000 Subject: [PATCH] No need to set `__env__ = env` since that's done in function globals injection machinery. --- salt/states/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/states/cmd.py b/salt/states/cmd.py index 820a52ab12..de271b4481 100644 --- a/salt/states/cmd.py +++ b/salt/states/cmd.py @@ -639,8 +639,8 @@ def script(name, ) salt.utils.warn_until('Helium', msg) ret.setdefault('warnings', []).append(msg) - # Backwards compatibility - __env__ = env + # No need to set __env__ = env since that's done in function + # globals injection machinery if HAS_GRP: pgid = os.getegid()