summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeha Pansare <neha.pansare@progress.com>2022-06-10 18:27:12 +0530
committerNeha Pansare <neha.pansare@progress.com>2022-06-10 18:27:12 +0530
commit3f14cba3319feded966bf8372a889a94df14953f (patch)
tree7f19ae0f6f4b97102f2b2849382e5511cb4beb26
parentb13436974028a858134cefc49cb83e2a3cd172be (diff)
downloadchef-neha-p6/fix_aix_failures.tar.gz
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 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"