From 0835e68766502320e79df77d4a448f2a044e251f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 23 Feb 2011 09:56:25 +0100 Subject: [PATCH] also pass object_id to cdist-explorer-run Signed-off-by: Nico Schottelius --- bin/cdist-object-explorer-all | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/cdist-object-explorer-all b/bin/cdist-object-explorer-all index 375b50d5..a9880b28 100755 --- a/bin/cdist-object-explorer-all +++ b/bin/cdist-object-explorer-all @@ -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