summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-03-11 10:59:01 -0800
committerSalim Alam <salam@chef.io>2016-03-11 10:59:01 -0800
commit7d32b4b636a271533d07f35c478bf4ca7108a25f (patch)
tree0fc9848b32caeb809bf9561e705c10300576322e /lib
parent7f970035bee3ea4ac0c582df0fcffaf3df516d6d (diff)
parent0c4249a6d822e4ff7034f099f6757b8543f75543 (diff)
downloadchef-7d32b4b636a271533d07f35c478bf4ca7108a25f.tar.gz
Merge pull request #4692 from chef/salam/mount-fix
Make mount idempotent on Windows
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/mount/windows.rb6
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