also pass object_id to cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								a12df5ce7c
							
						
					
				
			
			
				commit
				
					
						0835e68766
					
				
			
		
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -37,7 +37,8 @@ done < "$__cdist_tmp_file"
 | 
			
		|||
 | 
			
		||||
while [ $# -gt 0 ]; do
 | 
			
		||||
   object="$1"; shift
 | 
			
		||||
   type=$(__cdist_type_from_object "$object")
 | 
			
		||||
   object_id="$(__cdist_object_id_from_object "$object")"
 | 
			
		||||
   type="$(__cdist_type_from_object "$object")"
 | 
			
		||||
 | 
			
		||||
   local_src_dir="$(__cdist_type_explorer_dir "$type")"
 | 
			
		||||
   local_dst_dir="$__cdist_object_base_dir/${object}/${__cdist_name_explorer}"
 | 
			
		||||
| 
						 | 
				
			
			@ -53,7 +54,9 @@ while [ $# -gt 0 ]; do
 | 
			
		|||
         continue
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
      cdist-explorer-run "$__cdist_target_host" \
 | 
			
		||||
         "$local_src_dir" "$local_dst_dir" "$remote_src_dir" "$remote_dst_dir"
 | 
			
		||||
      cdist-explorer-run "$__cdist_target_host" \ 
 | 
			
		||||
         "$local_src_dir"  "$local_dst_dir"     \
 | 
			
		||||
         "$remote_src_dir" "$remote_dst_dir"    \
 | 
			
		||||
         "$object_id"
 | 
			
		||||
   fi
 | 
			
		||||
done
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue