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

Remove loader test for pam module #34002

Merged
merged 1 commit into from
Jun 14, 2016
Merged

Conversation

lorengordon
Copy link
Contributor

What does this PR do?

Remove the test in the __virtual__ function for the pam module. The test in the virtual function was unnecessary. The pam module does not itself rely on any external python or pam libraries. The
only function present, pam.read_file(), accepts a file name as a parameter, checks if it exists, and parses the file. There is no reason to avoid loading the module.

What issues does this PR fix or reference?

Fixes #20809

Previous Behavior

The pam module would load only if /usr/lib/libpam.so existed.

New Behavior

The pam module will always load, as there is no inherent python or pam library dependency.

Tests written?

No

The test in the virtual function was unnecessary. The pam module
does not itself rely on any external python or pam libraries. The
only function present, pam.read_file(), accepts a file name as a
parameter, checks if it exists, and parses the file. There is no
reason to avoid loading the module.

Fixes saltstack#20809
@rallytime
Copy link
Contributor

Thanks for grabbing this @lorengordon!

@rallytime rallytime merged commit 4c7fac0 into saltstack:2015.8 Jun 14, 2016
@lorengordon lorengordon deleted the issue-20809 branch June 14, 2016 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants