Replace legacy facts and use fact hash

... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: If81712ed2129684d887668f6320e88a206fdad4b
This commit is contained in:
Takashi Kajinami
2023-03-01 13:54:10 +09:00
parent 66dc9289fc
commit 62439012bd
10 changed files with 21 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ describe 'openstacklib::iscsid' do
end
let(:platform_params) do
case facts[:osfamily]
case facts[:os]['family']
when 'Debian'
{ :open_iscsi_package_name => 'open-iscsi' }
when 'RedHat'