summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeha Pansare <neha.pansare@progress.com>2022-09-27 13:18:50 +0530
committerNeha Pansare <neha.pansare@progress.com>2022-09-27 13:18:50 +0530
commit3dde0a01269c97bf53095fc4e610d26e8813a65d (patch)
treec408cb165e779dff2d7f69ffc1bbc7ae84b3aba2
parent3ad73088e196da1ada7cafe22c299d84cec7d442 (diff)
downloadchef-3dde0a01269c97bf53095fc4e610d26e8813a65d.tar.gz
Fix linting and chefstyle errors
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r--lib/chef/provider/user.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index f00eacad30..44cdca5553 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -67,9 +67,9 @@ class Chef
current_resource.comment(user_info.gecos)
# NOTE: The if condition `new_resource.password && current_resource.password == "x"` needs to be checked first so that `require "shadow"`` is not run on AIX, which will result in spec failures.
- # On AIX platforms ruby_shadow does not work as it doesnot store encrypted passwords in the /etc/passwd file but in /etc/security/passwd file.
- # Ruby's ETC.getpwnam also makes use of /etc/passwd file (https://github.com/ruby/etc/blob/master/ext/etc/etc.c), which returns "x" for a nil password, whereas
- # on AIX it returns a "*" (https://www.ibm.com/docs/bg/aix/7.2?topic=passwords-using-etcpasswd-file)
+ # On AIX platforms ruby_shadow does not work as it does not store encrypted passwords in the /etc/passwd file but in /etc/security/passwd file.
+ # Ruby's ETC.getpwnam also makes use of /etc/passwd file (https://github.com/ruby/etc/blob/master/ext/etc/etc.c), which returns "x" for a nil password, whereas
+ # on AIX it returns a "*" (https://www.ibm.com/docs/bg/aix/7.2?topic=passwords-using-etcpasswd-file)
if new_resource.password && current_resource.password == "x"
begin
require "shadow"