summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-21 12:25:29 -0800
committerTim Smith <tsmith@chef.io>2017-12-21 12:25:29 -0800
commitb07bb9003130d5d920ebb00f22bd3d5036976c9d (patch)
treecfe1a09412f20cba85e1bb3c8167189cd4eec81a /lib/chef/provider/package
parent37bacbbc9d6ca124af631acf72109a992b255e6a (diff)
downloadchef-b07bb9003130d5d920ebb00f22bd3d5036976c9d.tar.gz
Don't check both platform_family / os in provides when platform_family will do
We're already going specific enough here to identify the platform_family. Debian is always going to be on Linux and SmartOS on Solaris2. Don't both checking both. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/package')
-rw-r--r--lib/chef/provider/package/smartos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/smartos.rb b/lib/chef/provider/package/smartos.rb
index 8e4368f7c1..c23f08b618 100644
--- a/lib/chef/provider/package/smartos.rb
+++ b/lib/chef/provider/package/smartos.rb
@@ -30,7 +30,7 @@ class Chef
attr_accessor :is_virtual_package
provides :package, platform: "smartos"
- provides :smartos_package, os: "solaris2", platform_family: "smartos"
+ provides :smartos_package, platform_family: "smartos"
def load_current_resource
Chef::Log.debug("#{new_resource} loading current resource")