summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKristian Vlaardingerbroek <kristian.vlaardingerbroek@gmail.com>2013-01-29 16:46:23 +0100
committerBryan McLellan <btm@opscode.com>2013-04-12 11:56:22 -0700
commit0bd031076fe5aa197a40e2a004cd5bf5822bfabf (patch)
tree465c08863514cd5de7ba4e96638ac507e4a5539d /lib
parentf052f8affdc370d640382fc5b2e5f7ea112c1600 (diff)
downloadchef-0bd031076fe5aa197a40e2a004cd5bf5822bfabf.tar.gz
Check if mount options have changed in the enable action
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/mount.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount.rb b/lib/chef/provider/mount.rb
index fe41997d39..6b9dd91ac8 100644
--- a/lib/chef/provider/mount.rb
+++ b/lib/chef/provider/mount.rb
@@ -79,7 +79,7 @@ class Chef
end
def action_enable
- unless @current_resource.enabled
+ unless @current_resource.enabled && mount_options_unchanged?
converge_by("remount #{@current_resource.device}") do
status = enable_fs
if status