Fix SC2116.

remotes/origin/4.10
Darko Poljak 7 years ago
parent 5f8c631e34
commit a601fa91d9
  1. 2
      cdist/conf/type/__hostname/gencode-remote
  2. 4
      cdist/conf/type/__hostname/manifest

@ -22,7 +22,7 @@
if [ -f "$__object/parameter/name" ]; then
name_should="$(cat "$__object/parameter/name")"
else
name_should="$(echo "${__target_host%%.*}")"
name_should="${__target_host%%.*}"
fi
os=$(cat "$__global/explorer/os")

@ -25,10 +25,10 @@ if [ -f "$__object/parameter/name" ]; then
else
case "$os" in
openbsd)
name_should="$(echo "${__target_host}")"
name_should="${__target_host}"
;;
*)
name_should="$(echo "${__target_host%%.*}")"
name_should="${__target_host%%.*}"
;;
esac
fi

Loading…
Cancel
Save