forked from ungleich-public/cdist
rename param -> parameter
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
0458d7cbbe
commit
ac9d574049
2 changed files with 5 additions and 5 deletions
|
@ -196,14 +196,14 @@ __cdist_type_gencode()
|
||||||
echo "${__cdist_type_dir}/$1/${__cdist_name_gencode}"
|
echo "${__cdist_type_dir}/$1/${__cdist_name_gencode}"
|
||||||
}
|
}
|
||||||
|
|
||||||
__cdist_type_param_dir()
|
__cdist_type_parameter_dir()
|
||||||
{
|
{
|
||||||
echo "$(__cdist_type_dir "$1")/${__cdist_name_parameter}"
|
echo "$(__cdist_type_dir "$1")/${__cdist_name_parameter}"
|
||||||
}
|
}
|
||||||
|
|
||||||
__cdist_type_param_file()
|
__cdist_type_parameter_file()
|
||||||
{
|
{
|
||||||
echo "$(__cdist_type_param_dir "$1")/$2"
|
echo "$(__cdist_type_parameter_dir "$1")/$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
__cdist_type_from_object()
|
__cdist_type_from_object()
|
||||||
|
|
|
@ -78,14 +78,14 @@ while read required; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv "${tempparameter}/${required}" "${__cdist_parameter_dir}"
|
mv "${tempparameter}/${required}" "${__cdist_parameter_dir}"
|
||||||
done < "$(__cdist_type_param_file "$__cdist_type" "$__cdist_name_parameter_required")"
|
done < "$(__cdist_type_parameter_file "$__cdist_type" "$__cdist_name_parameter_required")"
|
||||||
|
|
||||||
# Allow optional parameters
|
# Allow optional parameters
|
||||||
while read optional; do
|
while read optional; do
|
||||||
if [ -f "${tempparameter}/${optional}" ]; then
|
if [ -f "${tempparameter}/${optional}" ]; then
|
||||||
mv "${tempparameter}/${optional}" "${__cdist_parameter_dir}"
|
mv "${tempparameter}/${optional}" "${__cdist_parameter_dir}"
|
||||||
fi
|
fi
|
||||||
done < "$(__cdist_type_param_file "$__cdist_type" "$__cdist_name_parameter_optional")"
|
done < "$(__cdist_type_parameter_file "$__cdist_type" "$__cdist_name_parameter_optional")"
|
||||||
|
|
||||||
# Error out on other paramaters
|
# Error out on other paramaters
|
||||||
cd "${tempparameter}"
|
cd "${tempparameter}"
|
||||||
|
|
Loading…
Reference in a new issue