check for missing objects

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.2
Nico Schottelius 14 years ago
parent 84b4bf628e
commit 4cc237fa03
  1. 3
      bin/cdist-config
  2. 5
      bin/cdist-remote-code-run

@ -227,7 +227,8 @@ __cdist_object_id_from_object()
__cdist_object_dir()
{
echo "${__cdist_out_object_dir}/$1"
__cdist_object_dir="${__cdist_out_object_dir}/$1"
echo "$__cdist_object_dir"
}
__cdist_remote_object_dir()

@ -30,6 +30,11 @@ __cdist_out_object_dir="$1"; shift
object="$1"; shift
if [ ! -d "$(__cdist_object_dir "$object")" ]; then
__cdist_exit_err "Object $object missing."
fi
finished="$(__cdist_object_code_finished "$object")"
code="$(__cdist_object_code "$object")"
require="$(__cdist_object_require "$object")"

Loading…
Cancel
Save