Skip to content

Commit

Permalink
(PUP-6113) Don't fetch password_min_age on Solaris if it doesn't exist
Browse files Browse the repository at this point in the history
This check was lost in a refactor back in 2014. Both the `password`
and `password_max_age` getters retained their checks for absence.
  • Loading branch information
Branan Riley committed Apr 7, 2016
1 parent f7b66d4 commit 5ed1091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/provider/user/user_role_add.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ def shadow_entry
end

def password
shadow_entry[1] if shadow_entry
return :absent unless shadow_entry
shadow_entry[1]
end

def password_min_age
return :absent unless shadow_entry
shadow_entry[3].empty? ? -1 : shadow_entry[3]
end

Expand Down

0 comments on commit 5ed1091

Please sign in to comment.