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:
		
					parent
					
						
							
								98dec302a6
							
						
					
				
			
			
				commit
				
					
						bf13325303
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue