Skip to content

Commit

Permalink
(PUP-401) case insensitive compare package names
Browse files Browse the repository at this point in the history
Package names are not case sensitive with Chocolatey, so the comparison
should not be either.
  • Loading branch information
ferventcoder committed Mar 4, 2015
1 parent 2a68438 commit cb7f0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/package/chocolatey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def update
# Query provides the information for the single package identified by @Resource[:name].

def query
self.class.instances.each do |provider_chocolatey|
return provider_chocolatey.properties if @resource[:name][/\A\S*/] == provider_chocolatey.name
self.class.instances.each do |package|
return package.properties if @resource[:name][/\A\S*/].downcase == package.name.downcase
end

return nil
Expand Down

0 comments on commit cb7f0e5

Please sign in to comment.