diff options
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r-- | lib/chef/provider/git.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb index 6f5a129820..f1c8380307 100644 --- a/lib/chef/provider/git.rb +++ b/lib/chef/provider/git.rb @@ -44,11 +44,11 @@ class Chef unless new_resource.user.nil? requirements.assert(:all_actions) do |a| a.assertion do - begin - get_homedir(new_resource.user) - rescue ArgumentError - false - end + + get_homedir(new_resource.user) + rescue ArgumentError + false + end a.whyrun("User #{new_resource.user} does not exist, this run will fail unless it has been previously created. Assuming it would have been created.") a.failure_message(Chef::Exceptions::User, "#{new_resource.user} required by resource #{new_resource.name} does not exist") |