diff options
author | Salim Alam <salam@chef.io> | 2016-03-10 15:11:26 -0800 |
---|---|---|
committer | Salim Alam <salam@chef.io> | 2016-03-10 15:52:45 -0800 |
commit | 99079ce804335db3072cf31c291dfcf2ac707167 (patch) | |
tree | 6ccd695a2e59d5c3375b18366a667870ed4bddae | |
parent | 615f2889ac732ac8435f69f8c9dfdae6f778edb6 (diff) | |
download | chef-99079ce804335db3072cf31c291dfcf2ac707167.tar.gz |
Make mount idempotent on Windowssalam/mount-fix
-rw-r--r-- | lib/chef/provider/mount/windows.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/provider/mount/windows.rb b/lib/chef/provider/mount/windows.rb index 3ffe326cac..0fb5aa7645 100644 --- a/lib/chef/provider/mount/windows.rb +++ b/lib/chef/provider/mount/windows.rb @@ -80,6 +80,12 @@ class Chef end end + private + + def mount_options_unchanged? + @current_resource.device == @new_resource.device + end + end end end |