Skip to content

Commit 2f6b9cb

Browse files
authored
Merge pull request #16 from nmaludy/master
Fix error when running with Ruby 1.9.x on the server side
2 parents 903575e + d883937 commit 2f6b9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/package/powershellcore.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def self.instances_command
6060

6161
def install_command
6262
command = "Install-Module #{@resource[:name]} -Scope AllUsers -Force"
63-
command << " -RequiredVersion #{@resource[:ensure]}" unless %i[present latest].include? @resource[:ensure]
63+
command << " -RequiredVersion #{@resource[:ensure]}" unless [:present, :latest].include? @resource[:ensure]
6464
command << " -Repository #{@resource[:source]}" if @resource[:source]
6565
command
6666
end

0 commit comments

Comments
 (0)