From 3f14cba3319feded966bf8372a889a94df14953f Mon Sep 17 00:00:00 2001 From: Neha Pansare Date: Fri, 10 Jun 2022 18:27:12 +0530 Subject: Fix chefstyle Signed-off-by: Neha Pansare --- lib/chef/provider/user.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb index d6b0ab0635..9c543f3eba 100644 --- a/lib/chef/provider/user.rb +++ b/lib/chef/provider/user.rb @@ -66,9 +66,9 @@ class Chef end current_resource.comment(user_info.gecos) - #We need to keep this if condition to prevent 'ruby-shadow' LoadError failure in unit specs for this resource on AIX platforms. - #Ruby's Etc.getpwnam(username) module returns masked password "x" on Unix systems, so if we remove this if condition, on AIX it goes into rescue - #and raises LoadError resulting in test failures. + # We need to keep this if condition to prevent 'ruby-shadow' LoadError failure in unit specs for this resource on AIX platforms. + # Ruby's Etc.getpwnam(username) module returns masked password "x" on Unix systems, so if we remove this if condition, on AIX it goes into rescue + # and raises LoadError resulting in test failures. if new_resource.password && current_resource.password == "x" begin require "shadow" -- cgit v1.2.1