Skip to content

Commit

Permalink
with os family
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed May 31, 2024
1 parent 0bf0468 commit bbfa0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit bbfa0ed

Please sign in to comment.