forked from ungleich-public/cdist
		
	Make local state dir available to custom remote scripts
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								e7d33891df
							
						
					
				
			
			
				commit
				
					
						ea0126dd81
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -420,6 +420,9 @@ class Config:
 | 
				
			||||||
                exec_path=sys.argv[0],
 | 
					                exec_path=sys.argv[0],
 | 
				
			||||||
                save_output_streams=args.save_output_streams)
 | 
					                save_output_streams=args.save_output_streams)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # Make __global state dir available to custom remote scripts.
 | 
				
			||||||
 | 
					            os.environ['__global'] = local.base_path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            remote = cdist.exec.remote.Remote(
 | 
					            remote = cdist.exec.remote.Remote(
 | 
				
			||||||
                target_host=target_host,
 | 
					                target_host=target_host,
 | 
				
			||||||
                remote_exec=remote_exec,
 | 
					                remote_exec=remote_exec,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue