Add messaging to __ssh_authorized_key. (#590)

This commit is contained in:
tom 2017-10-31 07:56:25 +01:00 committed by Darko Poljak
parent f6745c0eda
commit 5eb478da95
2 changed files with 11 additions and 0 deletions

View file

@ -111,8 +111,10 @@ fi
case "$state_should" in
present)
add_line "$file" "$entry"
echo "added to $file ($entry)" >> "$__messages_out"
;;
absent)
remove_line "$file" "$entry"
echo "removed from $file ($entry)" >> "$__messages_out"
;;
esac

View file

@ -36,6 +36,15 @@ state
if the given keys should be 'present' or 'absent', defaults to 'present'.
MESSAGES
--------
added to `file` (`entry`)
The key `entry` (with optional comment) was added to `file`.
removed from `file` (`entry`)
The key `entry` (with optional comment) was removed from `file`.
EXAMPLES
--------