Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the Autofs::Mapentry type more permissive #116

Merged
merged 2 commits into from
Apr 2, 2018

Conversation

jcbollinger
Copy link
Contributor

Pull Request (PR) description

The Autofs::Mapentry type rejected some map designations that Autofs itself
permits. The type is updated to accept all valid designations that
aren't plain absolute paths.

Inasmuch as the accepted designations vary with the specified map type,
and this data type does not make distinctions based on map type (and never
did), it now accepts some map designations that Autofs will reject.
Specifically, for 'file', 'directory', and 'program' map types, Autofs expects
the map name to be an absolute path, and the Autofs::Mapentry data
type no longer enforces this. This is a direct consequence of the type
now intentionally allowing map names for other map types that do
not have the form of absolute paths.

This Pull Request (PR) fixes the following issues

Fixes #115

The Autofs::Mapentry type rejected some map designations that Autofs itself
permits.  The type is updated to accept all valid designations that
aren't plain absolute paths.

Inasmuch as the accepted designations vary with the specified map type,
and this data type (still) does not make distinctions based on map type,
it now accepts some map designations that Autofs will reject.  Specifically,
for 'file', 'directory', and 'program' map types, Autofs expects the map name
to be an absolute path, and the Autofs::Mapentry data type no longer
enforces this.
Applied some code-style adjustments to satisfy the RuboCop-enforced
style rules for the project.
@juniorsysadmin juniorsysadmin added the bug Something isn't working label Mar 29, 2018
@dhollinger dhollinger merged commit 490888b into voxpupuli:master Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Autofs::Mapentry data type is incomplete
3 participants