diff options
author | John Keiser <john@johnkeiser.com> | 2015-05-09 19:46:20 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-02 09:53:41 -0700 |
commit | 6ca512d29ae8c271e3e506d80c66d3764f45f523 (patch) | |
tree | a4c48f7f2a92cf7940c8428590e7275d87c5ffc5 /lib/chef/provider/package.rb | |
parent | 1afea6b5761cf10332397b5e3f7a7350356ad3f7 (diff) | |
download | chef-6ca512d29ae8c271e3e506d80c66d3764f45f523.tar.gz |
Add platform_version to supported filters
Diffstat (limited to 'lib/chef/provider/package.rb')
-rw-r--r-- | lib/chef/provider/package.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/provider/package.rb b/lib/chef/provider/package.rb index fbf8a5ce31..469172f870 100644 --- a/lib/chef/provider/package.rb +++ b/lib/chef/provider/package.rb @@ -517,11 +517,7 @@ class Chef Chef.set_provider_priority_array :package, Pacman, platform: %w(arch) Chef.set_provider_priority_array :package, Ips, platform: %w(openindiana opensolaris omnios solaris2) Chef.set_provider_priority_array :package, Solaris, platform: %w(nexentacore) - Chef.set_provider_priority_array :package, Solaris, platform: %w(solaris2) do |node| - if node[:platform_version] - Chef::VersionConstraint::Platform.new('< 5.11').include?(node[:platform_version]) - end - end + Chef.set_provider_priority_array :package, Solaris, platform: %w(solaris2), platform_version: '< 5.11' Chef.set_provider_priority_array :package, SmartOS, platform: %w(smartos) Chef.set_provider_priority_array :package, Aix, platform: %w(aix) |