Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[2018.3] Fixes to sysctl modules and state #50423
What does this PR do?
Adding a check to see if the config file exists, if not then return an empty list so we get the would be changes. Adding a test for this functionality.
What issues does this PR fix or reference?
When run with test=True, if the file did not exist then a log message would say that the file could not be opened.
Updated the linux & freebsd sysctl modules to return an empty list when the file does not exist, then we get the would be changes.
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.