We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d5fb3 commit df27042Copy full SHA for df27042
spec/support/acceptance/prepare_host.rb
@@ -1,9 +1,7 @@
1
# frozen_string_literal: true
2
3
def prepare_host
4
- if fact('os.family') == 'RedHat'
5
- shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo')
6
- end
+ shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo') if fact('os.family') == 'RedHat'
7
8
apply_manifest <<~PUPPET
9
$services = $facts['os']['family'] ? {
0 commit comments