Skip to content

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
@Faelysse
Copy link
Author

Faelysse commented Aug 19, 2025

The CI failures don't seem to be related to my changes. Should I rebase to latest HEAD to try and fix it?

@dwoz dwoz merged commit 6ba1ba3 into saltstack:3006.x Aug 21, 2025
1336 of 1339 checks passed
Copy link

welcome bot commented Aug 21, 2025

Congratulations on your first PR being merged! 🎉

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
3 participants