-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve error handling around obtaining the user's Group ID
During `why_run` mode, the user has not been created yet. As such, calls to `Etc.getpwnam()` result in an `ArgumentError` being thrown. Add a `user_gid` method that either returns the gid or nil, and use it where the gid is required.
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters