diff options
Diffstat (limited to 'lib/chef/provider/user/mac.rb')
-rw-r--r-- | lib/chef/provider/user/mac.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb index 34307aff1e..9ae1628d5c 100644 --- a/lib/chef/provider/user/mac.rb +++ b/lib/chef/provider/user/mac.rb @@ -583,16 +583,16 @@ class Chef timeout = Time.now + 5 loop do - begin - run_dscl("read", "/Users/#{new_resource.username}", "ShadowHashData") - break - rescue Chef::Exceptions::DsclCommandFailed => e - if Time.now < timeout - sleep 0.1 - else - raise Chef::Exceptions::User, e.message - end + + run_dscl("read", "/Users/#{new_resource.username}", "ShadowHashData") + break + rescue Chef::Exceptions::DsclCommandFailed => e + if Time.now < timeout + sleep 0.1 + else + raise Chef::Exceptions::User, e.message end + end end |