Skip to content

Fix max_depth not respected in file.directory state #68256

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

Open
wants to merge 1 commit into
base: 3006.x
Choose a base branch
from

Conversation

Faelysse
Copy link

What does this PR do?

This fixes the max_depth parameter being ignored when using file.directory state and recursion

What issues does this PR fix or reference?

Fixes: #55306

Previous Behavior

Instead of intended behaviour (only modifying sub-directories and/or sub-files to a certain depth level, it modified every single file in the given path recursively.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@Faelysse Faelysse requested a review from a team as a code owner August 12, 2025 19:21
@twangboy twangboy added the test:full Run the full test suite label Aug 14, 2025
@twangboy twangboy added this to the Sulfur v3006.15 milestone Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file.directory recursive permissions not respecting max_depth for files
2 participants