forked from ungleich-public/cdist
		
	use __cdist_exec_fail_on_error in bin/cdist-code-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								08d18ec1ec
							
						
					
				
			
			
				commit
				
					
						813b4e1f2b
					
				
			
		
					 3 changed files with 11 additions and 9 deletions
				
			
		|  | @ -31,10 +31,8 @@ __cdist_object="$1"; shift | |||
| 
 | ||||
| # Code local | ||||
| export __cdist_out_object_dir="$__cdist_out_object_dir" | ||||
| cdist-code-run "$__cdist_object" "${__cdist_name_gencode_local}" \ | ||||
|    || __cdist_exit_err "Local code failed for $__cdist_object" | ||||
| cdist-code-run "$__cdist_object" "${__cdist_name_gencode_local}" | ||||
| 
 | ||||
| # Code remote | ||||
| cdist-run-remote "$__cdist_target_host" \ | ||||
|    "cdist-code-run" "$__cdist_object" "${__cdist_name_gencode_remote}" \ | ||||
|    || __cdist_exit_err "Remote code failed for $__cdist_object" | ||||
|    "cdist-code-run" "$__cdist_object" "${__cdist_name_gencode_remote}" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue