From bbfa0edf5637fc892b4015fa6e4c439a136b8eb6 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 31 May 2024 11:05:19 +1000 Subject: [PATCH] with os family --- spec/spec_helper_acceptance_local.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb index 00b5cbc..7e91194 100644 --- a/spec/spec_helper_acceptance_local.rb +++ b/spec/spec_helper_acceptance_local.rb @@ -1,10 +1,10 @@ include PuppetLitmus def install_packge(package) - if :osfamily == 'Ubuntu' + if os[:family] == 'Ubuntu' run_shell("apt -y install #{package}") end - if :osfamily == 'RedHat' + if os[:family] == 'RedHat' run_shell("yum -y install #{package}") end