remove hardcoded paths in cdist-type-emulator

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-16 12:57:13 +01:00
parent 057ee7911e
commit 86b8428edd

View file

@ -41,8 +41,8 @@ echo "$__cdist_object_id" | grep -q "^${__cdist_sane_regexp}\$" || \
__cdist_usage "Insane object id, ${__cdist_object_id}."
__cdist_object="${__cdist_type}/${__cdist_object_id}"
__cdist_ddir="$__cdist_output_dir/${__cdist_object}"
__cdist_parameter_dir="$__cdist_ddir/$__cdist_name_parameter"
__cdist_ddir="$(__cdist_object_dir "$__cdist_object")"
__cdist_parameter_dir="$(__cdist_object_parameter_dir "$__cdist_object")"
# Append id for error messages
__cdist_myname="$__cdist_myname ($__cdist_object_id)"