From 833c09adce9748fe864d2c9eb1d5d5dd6e0ff3fb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 18 Mar 2011 00:07:49 +0100 Subject: [PATCH] argc == 1 for cdist-manifest-run-all Signed-off-by: Nico Schottelius --- bin/cdist-deploy-to | 4 +--- bin/cdist-manifest-run-all | 9 ++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/cdist-deploy-to b/bin/cdist-deploy-to index 5eac578b..1461d526 100755 --- a/bin/cdist-deploy-to +++ b/bin/cdist-deploy-to @@ -48,9 +48,7 @@ cdist-dir push "$__cdist_target_host" "${__cdist_abs_mydir}" "${__cdist_remote_b cdist-explorer-run-global "$__cdist_target_host" cdist-manifest-run-init "$__cdist_target_host" - -# Create dependent objects -cdist-manifest-run-all "$__cdist_target_host" "$__cdist_out_object_dir" +cdist-manifest-run-all "$__cdist_target_host" # Run explorer of each type for every object of types with explorer cdist-object-explorer-all "$__cdist_target_host" "$__cdist_out_object_dir" diff --git a/bin/cdist-manifest-run-all b/bin/cdist-manifest-run-all index df4548bf..a111627f 100755 --- a/bin/cdist-manifest-run-all +++ b/bin/cdist-manifest-run-all @@ -28,11 +28,10 @@ # . cdist-config -[ $# -eq 2 ] || __cdist_usage " " +[ $# -eq 1 ] || __cdist_usage "" set -eu __cdist_target_host="$1"; shift -__cdist_object_base_dir="$1"; shift __cdist_objects_list="${__cdist_tmp_dir}/objects_file" __cdist_new_objects_list="${__cdist_tmp_dir}/new_objects_file" @@ -46,12 +45,12 @@ while [ "$__cdist_new_objects_created" = "y" ]; do # Assume we're done after this run __cdist_new_objects_created=n - __cdist_object_list "$__cdist_object_base_dir" > "$__cdist_objects_list" + __cdist_object_list "$__cdist_out_object_dir" > "$__cdist_objects_list" # Check every object, if we need to run it while read __cdist_object; do # Full path to current object - __cdist_cur_object_dir="$__cdist_object_base_dir/$__cdist_object" + __cdist_cur_object_dir="$__cdist_out_object_dir/$__cdist_object" # Only the id __cdist_object_id="$(__cdist_object_id_from_object "$__cdist_object")" @@ -89,7 +88,7 @@ while [ "$__cdist_new_objects_created" = "y" ]; do [ "$__cdist_new_objects_created" = "n" ] && __cdist_new_objects_created="y" # where to save the newly created object - __cdist_object_dir="$__cdist_object_base_dir/$__cdist_new_object" + __cdist_object_dir="$__cdist_out_object_dir/$__cdist_new_object" # Source of the new object __cdist_new_object_dir="${__cdist_new_objects_dir}/$__cdist_new_object"