Skip to content

Commit

Permalink
Fix Style/IfUnlessModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Dec 29, 2023
1 parent f3d5fb3 commit df27042
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/support/acceptance/prepare_host.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

def prepare_host
if fact('os.family') == 'RedHat'
shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo')
end
shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo') if fact('os.family') == 'RedHat'

apply_manifest <<~PUPPET
$services = $facts['os']['family'] ? {
Expand Down

0 comments on commit df27042

Please sign in to comment.