Skip to content

Commit 5ac19f9

Browse files
kbarberAshley Penney
authored andcommitted
Fix lsbmajdistreleasee fact for Ubuntu
Since facter 2.2.0 'fixed' the lsbmajdistrelease fact for Ubuntu, we now have to regexp for the value. The new value would be '10.04' whereas the old is '10'. Signed-off-by: Ken Barber <[email protected]>
1 parent 3686ae2 commit 5ac19f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
$service_name = $::operatingsystem ? {
113113
'Debian' => pick($service_name, 'postgresql'),
114114
'Ubuntu' => $::lsbmajdistrelease ? {
115-
'10' => pick($service_name, "postgresql-${version}"),
115+
/^10/ => pick($service_name, "postgresql-${version}"),
116116
default => pick($service_name, 'postgresql'),
117117
},
118118
default => undef

0 commit comments

Comments
 (0)