fix that stupid stdin is truncated bug again

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/random_dot_cdist
Steven Armstrong 10 years ago
parent 68586a0c3d
commit eed058426a
  1. 3
      cdist/conf/type/__ssh_authorized_keys/manifest

@ -74,5 +74,6 @@ while read key; do
if [ -f "$__object/parameter/comment" ]; then
set -- "$@" --comment "$(cat "$__object/parameter/comment")"
fi
__ssh_authorized_key "$@"
# Ensure __ssh_authorized_key does not read stdin
__ssh_authorized_key "$@" < /dev/null
done < "$__object/parameter/key"

Loading…
Cancel
Save