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