summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user/linux.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/user/linux.rb')
-rw-r--r--lib/chef/provider/user/linux.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/user/linux.rb b/lib/chef/provider/user/linux.rb
index a9a3e23cd9..d27dbcabd4 100644
--- a/lib/chef/provider/user/linux.rb
+++ b/lib/chef/provider/user/linux.rb
@@ -93,6 +93,7 @@ class Chef
# checking "does not exist" has to come before exit code handling since centos and ubuntu differ in exit codes
if passwd_s.stderr =~ /does not exist/
return false if whyrun_mode?
+
raise Chef::Exceptions::User, "User #{new_resource.username} does not exist when checking lock status for #{new_resource}"
end