diff options
author | James Belchamber <james@belchamber.com> | 2014-08-08 16:48:04 +0100 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-21 16:39:30 -0700 |
commit | b92385c73b6e39cc9d3373e8ec28f0702b0b5afb (patch) | |
tree | 2404236817a4c48aca6a93c6380a687ae945f825 | |
parent | e79605dddc056a738f39e279b35f8b3096328e9e (diff) | |
download | chef-b92385c73b6e39cc9d3373e8ec28f0702b0b5afb.tar.gz |
there is always an option!
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 6 | ||||
-rw-r--r-- | spec/unit/provider/mount/mount_spec.rb | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index abfffaa60e..2d4a5aadef 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -127,11 +127,7 @@ class Chef end def remount_command - if !(@new_resource.options.nil? || @new_resource.options.empty?) - return "mount -o remount,#{@new_resource.options.join(',')} #{@new_resource.mount_point}" - else - return "mount -o remount #{@new_resource.mount_point}" - end + return "mount -o remount,#{@new_resource.options.join(',')} #{@new_resource.mount_point}" end def remount_fs diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb index ced22e4fbf..d6f71bc613 100644 --- a/spec/unit/provider/mount/mount_spec.rb +++ b/spec/unit/provider/mount/mount_spec.rb @@ -347,7 +347,7 @@ describe Chef::Provider::Mount::Mount do it "should use mount -o remount if remount is supported" do @new_resource.supports({:remount => true}) @current_resource.mounted(true) - @provider.should_receive(:shell_out!).with("mount -o remount #{@new_resource.mount_point}") + @provider.should_receive(:shell_out!).with("mount -o remount,defaults #{@new_resource.mount_point}") @provider.remount_fs end |