Skip to content

Commit febb719

Browse files
committed
fix spec tests
1 parent b5fb24b commit febb719

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
}
243243

244244
$debian_legacy_location = '/etc/default/locale'
245-
if $facts['os']['name'] == 'Debian' and $default_file != $debian_legacy_location {
245+
if $facts['os']['family'] == 'Debian' and $default_file != $debian_legacy_location {
246246
file { $debian_legacy_location:
247247
ensure => $ensure,
248248
target => $default_file,

manifests/params.pp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,8 @@
3333
$default_file = '/etc/default/locale'
3434
}
3535
$package = 'locales'
36-
case $facts['os']['distro']['codename'] {
37-
'hardy': {
38-
$update_locale_pkg = 'belocs-locales-bin'
39-
}
40-
default: {
41-
$update_locale_pkg = 'libc-bin'
42-
}
43-
}
44-
if versioncmp($facts['os']['release']['full'], '16.04') >= 0 {
45-
$config_file = '/etc/locale.gen'
46-
} else {
47-
$config_file = '/var/lib/locales/supported.d/local'
48-
}
36+
$update_locale_pkg = 'libc-bin'
37+
$config_file = '/etc/locale.gen'
4938
}
5039
/(Debian|Raspbian|Kali)/: {
5140
if versioncmp($facts['os']['release']['major'], '12') >= 0 {

0 commit comments

Comments
 (0)