summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-03-10 15:11:26 -0800
committerSalim Alam <salam@chef.io>2016-03-10 15:52:45 -0800
commit99079ce804335db3072cf31c291dfcf2ac707167 (patch)
tree6ccd695a2e59d5c3375b18366a667870ed4bddae
parent615f2889ac732ac8435f69f8c9dfdae6f778edb6 (diff)
downloadchef-salam/mount-fix.tar.gz
Make mount idempotent on Windowssalam/mount-fix
-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