Skip to content

Commit

Permalink
spec file: replace legacy fact
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 25, 2024
1 parent 7c3351e commit 21ae4e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/icinga_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

it { is_expected.to compile }

case facts[:osfamily]
case facts[:os]['family']
when 'RedHat', 'Debian', 'Suse'

context 'ca => true, this_zone => foo, zones => {}' do
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/repos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
end
end

case facts[:osfamily]
case facts[:os]['family']
when 'RedHat'
context 'with manage_epel => false, manage_powertools => false' do
let(:params) do
Expand Down

0 comments on commit 21ae4e2

Please sign in to comment.