if env is not given, os.environ is used -> need to also do that

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-11-18 14:56:59 +01:00
parent 98dec302a6
commit bf13325303
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Local(object):
self.log.debug("Local run: %s", command)
if env is None:
env = {}
env = os.environ.copy()
# Export __target_host for use in __remote_{copy,exec} scripts
env['__target_host'] = self.target_host
@ -122,7 +122,7 @@ class Local(object):
self.log.debug("Local run script: %s", command)
if env is None:
env = {}
env = os.environ.copy()
# Export __target_host for use in __remote_{copy,exec} scripts
env['__target_host'] = self.target_host