From b5d3d81ffa8e9922981c56d3c07f5eba9f897589 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Tue, 17 Sep 2024 16:08:39 -0700 Subject: [PATCH] remove usage of legacy facts --- spec/classes/chrony_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/classes/chrony_spec.rb b/spec/classes/chrony_spec.rb index 16aed6b..55dd5d1 100644 --- a/spec/classes/chrony_spec.rb +++ b/spec/classes/chrony_spec.rb @@ -9,7 +9,7 @@ facts end let(:config_file) do - case facts[:osfamily] + case facts[:os]['family'] when 'Archlinux', 'RedHat', 'Suse' '/etc/chrony.conf' else @@ -17,7 +17,7 @@ end end let(:keys_file) do - case facts[:osfamily] + case facts[:os]['family'] when 'Archlinux', 'RedHat', 'Suse' '/etc/chrony.keys' else