diff options
author | Neha Pansare <neha.pansare@progress.com> | 2022-06-10 18:27:12 +0530 |
---|---|---|
committer | Neha Pansare <neha.pansare@progress.com> | 2022-06-10 18:27:12 +0530 |
commit | 3f14cba3319feded966bf8372a889a94df14953f (patch) | |
tree | 7f19ae0f6f4b97102f2b2849382e5511cb4beb26 | |
parent | b13436974028a858134cefc49cb83e2a3cd172be (diff) | |
download | chef-neha-p6/fix_aix_failures.tar.gz |
Fix chefstyleneha-p6/fix_aix_failures
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r-- | lib/chef/provider/user.rb | 6 |
1 files 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" |