Skip to content

Commit d1eb40d

Browse files
committed
fix: modern way to get os family
1 parent 4cedf05 commit d1eb40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/params.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# RHEL 6.6 includes automatic sudo configuration
3737
# RHEL 7.0 requires manual confifuration
3838
# RHEL >=7.1 includes automatic sudo configuration
39-
case $::osfamily {
39+
case $facts['os']['family'] {
4040
'RedHat': {
4141
case $::operatingsystem {
4242
'Fedora': {
@@ -74,7 +74,7 @@
7474
}
7575
}
7676
default: {
77-
fail("This module does not support operatingsystem ${::operatingsystem}")
77+
fail("This module does not support os family " + facts['os']['family'])
7878
}
7979
}
8080

0 commit comments

Comments
 (0)