HomePhorge

(maint) Reduce redundancy in Puppet::Util::Posix
26934a1bdf8aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Reduce redundancy in Puppet::Util::Posix

Before this commit Puppet::Util::Posix had duplicate error
handling code for retrieving the actual ID, either of a group or
user. This commit refactors those two methods to abstract away
the location of the source of truth, either the group file
or the passwd file, and the logic for handling whether or not
a numeric ID or a name was passed in.

Details

Provenance
Gabriella Chronis <gabriella@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU923e002024b6: (PUP-2583) Fix bad test case in file type mode acceptance test.
Branches
Unknown
Tags
Unknown

Event Timeline

Gabriella Chronis <gabriella@puppetlabs.com> committed rPU26934a1bdf8a: (maint) Reduce redundancy in Puppet::Util::Posix (authored by Gabriella Chronis <gabriella@puppetlabs.com>).Jun 4 2014, 9:00 PM