forked from ungleich-public/cdist
Fix removing ssh key that is last one in the file.
This commit is contained in:
parent
de9254d4c0
commit
eae399b025
2 changed files with 2 additions and 1 deletions
|
@ -23,4 +23,4 @@ type_and_key="$(cat "$__object/parameter/key" | tr ' ' '\n' | awk '/^(ssh|ecdsa)
|
||||||
file="$(cat $__object/parameter/file)"
|
file="$(cat $__object/parameter/file)"
|
||||||
|
|
||||||
# get any entries that match the type and key
|
# get any entries that match the type and key
|
||||||
grep ".*$type_and_key[ \n]" "$file" || true
|
grep ".*$type_and_key\([ \n]\|$\)" "$file" || true
|
||||||
|
|
|
@ -10,6 +10,7 @@ next:
|
||||||
* Type __user_groups: Support OpenBSD (Philippe Gregoire)
|
* Type __user_groups: Support OpenBSD (Philippe Gregoire)
|
||||||
* Type __hostname: Allow hostnamectl to fail silently (Steven Armstrong)
|
* Type __hostname: Allow hostnamectl to fail silently (Steven Armstrong)
|
||||||
* Type __install_config: Use default default __remote_{copy,exec} in custom __remote_{copy,exec} scripts (Steven Armstrong)
|
* Type __install_config: Use default default __remote_{copy,exec} in custom __remote_{copy,exec} scripts (Steven Armstrong)
|
||||||
|
* Type __ssh_authorized_key: Fix removing ssh key that is last one in the file (Darko Poljak)
|
||||||
|
|
||||||
4.6.0: 2017-08-25
|
4.6.0: 2017-08-25
|
||||||
* Core: Add inventory functionality (Darko Poljak)
|
* Core: Add inventory functionality (Darko Poljak)
|
||||||
|
|
Loading…
Reference in a new issue