aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-10 23:34:57 +0100
committermh <mh@immerda.ch>2009-12-10 23:34:57 +0100
commit217a4e25666e1fe2684872aa3f3a9868ffcf7141 (patch)
treedc023ac721690108abe50b3f5c808c97b4e63fc6
parentbdf7bd334ee6a6a07eb6cfab17dc9c7fc79ec1a8 (diff)
downloadpuppet-sshd-217a4e25666e1fe2684872aa3f3a9868ffcf7141.tar.gz
puppet-sshd-217a4e25666e1fe2684872aa3f3a9868ffcf7141.tar.bz2
undef or '' as default
-rw-r--r--manifests/ssh_authorized_key.pp6
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" }
}