Skip to content

Commit

Permalink
remove usage of legacy facts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Sep 17, 2024
1 parent 93660fa commit b5d3d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/chrony_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
facts
end
let(:config_file) do
case facts[:osfamily]
case facts[:os]['family']
when 'Archlinux', 'RedHat', 'Suse'
'/etc/chrony.conf'
else
'/etc/chrony/chrony.conf'
end
end
let(:keys_file) do
case facts[:osfamily]
case facts[:os]['family']
when 'Archlinux', 'RedHat', 'Suse'
'/etc/chrony.keys'
else
Expand Down

0 comments on commit b5d3d81

Please sign in to comment.