summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-05 15:07:44 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-05 15:07:44 -0800
commitcb4ee84e418164e8d2e85147efad711a42ff2799 (patch)
treef225de7251a8b49b8d183dd168bab0a0addbe23f /lib/chef/provider/user.rb
parentd1cf34b059a16a81e0fc48de52ba29863bb41fe6 (diff)
parent686113531d23f30e9973d659c456ae33eb9cff1f (diff)
downloadchef-cb4ee84e418164e8d2e85147efad711a42ff2799.tar.gz
Merge pull request #4526 from chef/lcg/whitespace-style
whitespace fixes
Diffstat (limited to 'lib/chef/provider/user.rb')
-rw-r--r--lib/chef/provider/user.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index 3b8fe61171..85bd674d8d 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -98,7 +98,7 @@ class Chef
a.assertion { @shadow_lib_ok }
a.failure_message Chef::Exceptions::MissingLibrary, "You must have ruby-shadow installed for password support!"
a.whyrun "ruby-shadow is not installed. Attempts to set user password will cause failure. Assuming that this gem will have been previously installed." +
- "Note that user update converge may report false-positive on the basis of mismatched password. "
+ "Note that user update converge may report false-positive on the basis of mismatched password. "
end
requirements.assert(:modify, :lock, :unlock) do |a|
a.assertion { @user_exists }
@@ -125,7 +125,6 @@ class Chef
end
def action_create
-
if !@user_exists
converge_by("create user #{@new_resource.username}") do
create_user