DRY: Remove default parameter value handeling in __package_pacman
This commit is contained in:
parent
65f50b64b7
commit
5aaea37194
2 changed files with 2 additions and 5 deletions
|
@ -31,11 +31,7 @@ else
|
||||||
name="$__object_id"
|
name="$__object_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/state" ]; then
|
|
||||||
state_should="$(cat "$__object/parameter/state")"
|
state_should="$(cat "$__object/parameter/state")"
|
||||||
else
|
|
||||||
state_should="present"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pkg_version="$(cat "$__object/explorer/pkg_version")"
|
pkg_version="$(cat "$__object/explorer/pkg_version")"
|
||||||
if [ -z "$pkg_version" ]; then
|
if [ -z "$pkg_version" ]; then
|
||||||
|
|
1
cdist/conf/type/__package_pacman/parameter/default/state
Normal file
1
cdist/conf/type/__package_pacman/parameter/default/state
Normal file
|
@ -0,0 +1 @@
|
||||||
|
present
|
Loading…
Reference in a new issue