DRY: Remove default parameter value handeling in __apt_source

This commit is contained in:
Antoine Catton 2014-12-27 20:05:40 -07:00
parent 6610a9c384
commit 17afb5f5ad
2 changed files with 3 additions and 5 deletions
cdist/conf/type/__apt_source
manifest
parameter/default

View file

@ -27,11 +27,9 @@ if [ -f "$__object/parameter/distribution" ]; then
else else
distribution="$(cat "$__global/explorer/lsb_codename")" distribution="$(cat "$__global/explorer/lsb_codename")"
fi fi
if [ -f "$__object/parameter/component" ]; then
component="$(cat "$__object/parameter/component")" component="$(cat "$__object/parameter/component")"
else
component=""
fi
if [ -f "$__object/parameter/arch" ]; then if [ -f "$__object/parameter/arch" ]; then
forcedarch="[arch=$(cat "$__object/parameter/arch")]" forcedarch="[arch=$(cat "$__object/parameter/arch")]"
else else