summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-02 10:49:49 -0800
committerTim Smith <tsmith@chef.io>2018-01-02 10:49:49 -0800
commit49dfa83f72a46428365fbc7f2b46d091edfc839e (patch)
treec66f845b77d6cf043cff33304d870233dab4976a
parent31c8fb12bb4d4ae5a853cf25e2b80843c00bf918 (diff)
downloadchef-windows_path.tar.gz
Don't restrict the provides to os: windowswindows_path
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/windows_path.rb2
-rw-r--r--lib/chef/resource/windows_path.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/windows_path.rb b/lib/chef/provider/windows_path.rb
index d43b34cdda..1c78e20606 100644
--- a/lib/chef/provider/windows_path.rb
+++ b/lib/chef/provider/windows_path.rb
@@ -25,7 +25,7 @@ class Chef
class WindowsPath < Chef::Provider
include Chef::Mixin::WindowsEnvHelper if Chef::Platform.windows?
- provides :windows_path, os: "windows"
+ provides :windows_path
def load_current_resource
@current_resource = Chef::Resource::WindowsPath.new(new_resource.name)
diff --git a/lib/chef/resource/windows_path.rb b/lib/chef/resource/windows_path.rb
index a8a882d4c1..7da24a3c06 100644
--- a/lib/chef/resource/windows_path.rb
+++ b/lib/chef/resource/windows_path.rb
@@ -25,7 +25,7 @@ class Chef
# @since 13.4
class WindowsPath < Chef::Resource
resource_name :windows_path
- provides :windows_path, os: "windows"
+ provides :windows_path
allowed_actions :add, :remove
default_action :add