DRY: Remove default parameter value handeling in __package_apt
This commit is contained in:
parent
0844f717a8
commit
601346d482
2 changed files with 2 additions and 5 deletions
|
@ -27,11 +27,7 @@ else
|
|||
name="$__object_id"
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/state" ]; then
|
||||
state_should="$(cat "$__object/parameter/state")"
|
||||
else
|
||||
state_should="present"
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/target-release" ]; then
|
||||
target_release="--target-release $(cat "$__object/parameter/target-release")"
|
||||
|
|
1
cdist/conf/type/__package_apt/parameter/default/state
Normal file
1
cdist/conf/type/__package_apt/parameter/default/state
Normal file
|
@ -0,0 +1 @@
|
|||
present
|
Loading…
Reference in a new issue