Skip to content

Commit

Permalink
refactor(inspec): use os:family simplification for config_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 13, 2019
1 parent 1875eb6 commit 7aa9b7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def check_suse
end

# Override by OS
case os[:name]
when 'debian', 'ubuntu'
case os[:family]
when 'debian'
check_debian
when 'redhat', 'fedora', 'centos'
when 'redhat', 'fedora'
check_redhat
when 'suse', 'opensuse'
when 'suse'
check_suse
end
end

0 comments on commit 7aa9b7b

Please sign in to comment.