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
Check file_mode in file.directory and _check_directory #50653
What does this PR do?
It fixes a bug in salt.states.file.directory that caused the function to return prematurely without evaluating the mode of files in a directory to be recursively evaluated. This PR adds a check for the file_mode parameter in the _check_directory function used by salt.states.file.directory
What issues does this PR fix or reference?
file.directory recurse not always changing perms #49393
_check_directory does not evaluate the mode of files, only the user and group.
_check_directory evaluates the user, group, and mode of files.
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.