HomePhorge

Remove unnecessary fallbacks in change_{user,group}
4bcbad4badb5Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Remove unnecessary fallbacks in change_{user,group}

These methods were attempting to call change_privilege, and rescuing
NotImplementedError, to use our own implementation of similar behavior.
As it turns out, the only system on which change_privilege is not
implemented is Windows, which these methods already don't support. So
there's no reason to have a fallback that would only ever fail or not be
reached.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
Matthaus Litteken <matthaus@puppetlabs.com>Committed on Feb 20 2012, 8:57 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUff372fb9426a: Document uid/gid-related methods in Puppet::Util
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPU4bcbad4badb5: Remove unnecessary fallbacks in change_{user,group} (authored by Nick Lewis <nick@puppetlabs.com>).Feb 20 2012, 8:57 PM