Skip to content

Commit

Permalink
(Modules-4508) Fixed error with version parameter
Browse files Browse the repository at this point in the history
Using one dash instead of two for a parameter causes chocolatey to think
the parameter is a bundled option (like -dvyf means --debug --verbose
--confirm --force).
  • Loading branch information
Derek Robinson authored and Derek Robinson committed Mar 8, 2017
1 parent 41a4307 commit 4458604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/chocolatey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def install
end

# Add the package version
args << @resource[:name][/\A\S*/] << '-version' << @resource[:ensure]
args << @resource[:name][/\A\S*/] << '--version' << @resource[:ensure]
end

if choco_exe
Expand Down

0 comments on commit 4458604

Please sign in to comment.