forked from ungleich-public/cdist
DRY: Remove default parameter value handeling in __package_pip
This commit is contained in:
parent
5aaea37194
commit
9fd285da4c
2 changed files with 2 additions and 5 deletions
|
@ -22,11 +22,7 @@
|
|||
#
|
||||
|
||||
state_is=$(cat "$__object/explorer/state")
|
||||
if [ -f "$__object/parameter/state" ]; then
|
||||
state_should="$(cat "$__object/parameter/state")"
|
||||
else
|
||||
state_should="present"
|
||||
fi
|
||||
state_should="$(cat "$__object/parameter/state")"
|
||||
|
||||
[ "$state_is" = "$state_should" ] && exit 0
|
||||
|
||||
|
|
1
cdist/conf/type/__package_pip/parameter/default/state
Normal file
1
cdist/conf/type/__package_pip/parameter/default/state
Normal file
|
@ -0,0 +1 @@
|
|||
present
|
Loading…
Reference in a new issue