diff options
-rw-r--r-- | manifests/ssh_authorized_key.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/ssh_authorized_key.pp b/manifests/ssh_authorized_key.pp index 9374e15..2096099 100644 --- a/manifests/ssh_authorized_key.pp +++ b/manifests/ssh_authorized_key.pp @@ -9,13 +9,13 @@ define sshd::ssh_authorized_key( $real_user = $user ? { false => $name, - "" => $name, + '' => $name, default => $user, } case $target { - undef: { - case $user { + undef,'': { + case $real_user { 'root': { $real_target = '/root/.ssh/authorized_keys' } default: { $real_target = "/home/${user}/.ssh/authorized_keys" } } |