From 21ae4e223302d5d1d3a84fd1abff96956c486a5a Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 25 Jul 2024 17:05:02 +0200 Subject: [PATCH] spec file: replace legacy fact --- spec/classes/icinga_spec.rb | 2 +- spec/classes/repos_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/classes/icinga_spec.rb b/spec/classes/icinga_spec.rb index 89d9106..bcefc07 100644 --- a/spec/classes/icinga_spec.rb +++ b/spec/classes/icinga_spec.rb @@ -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 diff --git a/spec/classes/repos_spec.rb b/spec/classes/repos_spec.rb index 0541cec..ae86060 100644 --- a/spec/classes/repos_spec.rb +++ b/spec/classes/repos_spec.rb @@ -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