Skip to content

Commit fc17282

Browse files
committed
Switch unsupported_puppetserver to family based-checks
1 parent b608826 commit fc17282

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/support/acceptance/puppetserver.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
def unsupported_puppetserver
2-
case host_inventory['facter']['os']['name']
2+
os = host_inventory['facter']['os']
3+
case os['family']
34
when 'Archlinux'
45
true
5-
when 'Fedora'
6-
true
76
when 'Debian'
8-
host_inventory['facter']['os']['release']['major'] == '12'
7+
os['name'] == 'Debian' && os['release']['major'] == '12'
8+
when 'RedHat'
9+
os['name'] == 'Fedora'
910
end
1011
end
1112

0 commit comments

Comments
 (0)