Unverified Commit 6127ae46 authored by Tim Smith's avatar Tim Smith Committed by GitHub
Browse files

Merge pull request #149 from chocolatey-community/kitchen

Avoid no-op resource logs if upgrade isn't set
parents 3cae40fc dc812b58
......@@ -40,8 +40,9 @@ powershell_script 'Install Chocolatey' do
not_if { chocolatey_installed? }
end
chocolatey_package 'chocolatey' do
action :upgrade
version node['chocolatey']['install_vars']['chocolateyVersion']
only_if { node['chocolatey']['upgrade'] }
if node['chocolatey']['upgrade']
chocolatey_package 'chocolatey' do
action :upgrade
version node['chocolatey']['install_vars']['chocolateyVersion']
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment