diff options
author | Bryan McLellan <btm@loftninjas.org> | 2016-03-31 20:43:50 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2016-03-31 20:43:50 -0400 |
commit | 2f1357e682eb12dd3b3ac797707b3cb7c320a7b4 (patch) | |
tree | 1fb1cbf202770b20610db00d7903a7cf2c7523ef /lib | |
parent | b57dbc4bf35a00edbd4cf016dd4ec97fa46553e2 (diff) | |
parent | c8f525400113b5df7b2100e2cec52df75d084121 (diff) | |
download | chef-2f1357e682eb12dd3b3ac797707b3cb7c320a7b4.tar.gz |
Merge pull request #4775 from chef/cd/mount-remount-options
Revert PR #1796: make mount resource options-ignorant again.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/mount.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/chef/provider/mount.rb b/lib/chef/provider/mount.rb index cc4a548ac1..9e9ee29bde 100644 --- a/lib/chef/provider/mount.rb +++ b/lib/chef/provider/mount.rb @@ -42,17 +42,13 @@ class Chef end def action_mount - if current_resource.mounted - if mount_options_unchanged? - Chef::Log.debug("#{new_resource} is already mounted") - else - action_remount - end - else + unless current_resource.mounted converge_by("mount #{current_resource.device} to #{current_resource.mount_point}") do mount_fs Chef::Log.info("#{new_resource} mounted") end + else + Chef::Log.debug("#{new_resource} is already mounted") end end |