Skip to content

Commit

Permalink
Merge pull request #612 from DataDog/arbll/allow_downgrade-suse
Browse files Browse the repository at this point in the history
allow_downgrade on SUSE
  • Loading branch information
remeh authored May 17, 2019
2 parents 0d8ec44 + c70e877 commit 708d728
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/_install-linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@
allow_downgrade node['datadog']['agent_allow_downgrade']
end
when 'suse'
zypper_package 'datadog-agent' do
zypper_package 'datadog-agent' do # ~FC009
version dd_agent_version
retries package_retries unless package_retries.nil?
retry_delay package_retry_delay unless package_retry_delay.nil?
action package_action # default is :install
# allow_downgrade is only suported for zypper_package since Chef Client 13.6
allow_downgrade node['datadog']['agent_allow_downgrade'] if respond_to?(:allow_downgrade)
end
end

0 comments on commit 708d728

Please sign in to comment.