argc == 1 for cdist-object-explorer-all

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-18 00:15:02 +01:00
parent 8dddec57db
commit 618287efaa
2 changed files with 3 additions and 6 deletions

View file

@ -49,9 +49,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"
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"
cdist-object-explorer-all "$__cdist_target_host"
# Generate code for all objects
cdist-object-gencode-all "$__cdist_target_host" "$__cdist_out_object_dir"

View file

@ -22,18 +22,17 @@
#
. cdist-config
[ $# -eq 2 ] || __cdist_usage "<target host> <object_base_dir>"
[ $# -eq 1 ] || __cdist_usage "<target host>"
set -eu
__cdist_target_host="$1"; shift
__cdist_object_base_dir="$1"; shift
object_listing="$__cdist_tmp_dir/objects"
type_listing_all="$__cdist_tmp_dir/types_all"
type_listing="$__cdist_tmp_dir/types"
# Get listing of objects
__cdist_object_list "$__cdist_object_base_dir" > "$object_listing"
__cdist_object_list "$__cdist_out_object_dir" > "$object_listing"
# Get listing of types used
while read object; do