Skip to content

Commit 2d84b3c

Browse files
authored
Fix syntax for puppet 4 support
On older versions of puppet (discovered on 4.10.7) this select statement fails and $_local_user_home ends up with the boolean value 'false' instead of one of the strings you would expect.
1 parent c3a9f56 commit 2d84b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/registry.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
$_local_user_home = $local_user_home
6969
} else {
7070
# set sensible default
71-
$_local_user_home = $local_user == 'root' ? {
71+
$_local_user_home = ($local_user == 'root') ? {
7272
true => '/root',
7373
default => "/home/${local_user}",
7474
}

0 commit comments

Comments
 (0)