DRY: Remove default parameter value handeling in __package_pip

remotes/origin/3.1
Antoine Catton 10 years ago
parent 5aaea37194
commit 9fd285da4c
  1. 6
      cdist/conf/type/__package_pip/gencode-remote
  2. 1
      cdist/conf/type/__package_pip/parameter/default/state

@ -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

Loading…
Cancel
Save