Skip to content

Commit

Permalink
fix nil addit param
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 1, 2021
1 parent de40aed commit 93c36ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2users/users_module/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def user(user_attrs, config)
user.gid = user_gid(user_attrs, config)
user.home = home(user_attrs)
user.shell = attr_value(:loginShell, user_attrs)
user.gecos = [attr_value(:cn, user_attrs), *user_attrs["addit_data"].split(",")].compact
user.gecos = [attr_value(:cn, user_attrs), *(user_attrs["addit_data"] || "").split(",")].compact
user.system = true if !user.uid && user_attrs["type"] == "system"
user.receive_system_mail = Yast::Users.GetRootAliases[user.name] == 1

Expand Down

0 comments on commit 93c36ed

Please sign in to comment.