diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-23 09:58:26 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-28 16:59:26 -0700 |
commit | bf3bd0141a97002b76b0cb9e124e666a7e52c612 (patch) | |
tree | 35844c14453f9dc308bb91e2209cbab1cc1e60bc /lib/chef | |
parent | ba178473c147f5eb698a6a73319b13f9fa4fcfc4 (diff) | |
download | chef-bf3bd0141a97002b76b0cb9e124e666a7e52c612.tar.gz |
fix mount specs busted by refactoring
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/mount.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/chef/provider/mount.rb b/lib/chef/provider/mount.rb index 50f3228266..019fab718f 100644 --- a/lib/chef/provider/mount.rb +++ b/lib/chef/provider/mount.rb @@ -65,11 +65,15 @@ class Chef Chef::Log.info("#{@new_resource} remounted") end else - umount_fs - Chef::Log.info("#{@new_resource} unmounted") - sleep 1 - mount_fs - Chef::Log.info("#{@new_resource} mounted") + converge_by("unmount #{@current_resource.device}") do + umount_fs + Chef::Log.info("#{@new_resource} unmounted") + end + sleep 3 + converge_by("mount #{@current_resource.device}") do + mount_fs + Chef::Log.info("#{@new_resource} mounted") + end end else Chef::Log.debug("#{@new_resource} not mounted, nothing to remount") |