forked from ungleich-public/cdist
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
|
while [ $# -gt 0 ]; do
|
||||||
object="$1"; shift
|
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_src_dir="$(__cdist_type_explorer_dir "$type")"
|
||||||
local_dst_dir="$__cdist_object_base_dir/${object}/${__cdist_name_explorer}"
|
local_dst_dir="$__cdist_object_base_dir/${object}/${__cdist_name_explorer}"
|
||||||
|
@ -54,6 +55,8 @@ while [ $# -gt 0 ]; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cdist-explorer-run "$__cdist_target_host" \
|
cdist-explorer-run "$__cdist_target_host" \
|
||||||
"$local_src_dir" "$local_dst_dir" "$remote_src_dir" "$remote_dst_dir"
|
"$local_src_dir" "$local_dst_dir" \
|
||||||
|
"$remote_src_dir" "$remote_dst_dir" \
|
||||||
|
"$object_id"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue