-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Fix max_depth not respected in file.directory state #68254
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
Fix max_depth not respected in file.directory state #68254
Conversation
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
This now fails without changes in PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are we testing that max_depth is being honored?
Additionally, if this bug exists in 3006.x, the PR should be created against the 3006.x branch. Master is for new features.
I modified the test in
This bug exists in Salt ever likely (can't verify) since 6d52aeb, and it was reported in the linked issue to be at earliest in |
3006.x is the earliest supported branch. That's where it should go. |
Created #68256 to merge into |
OK, we'll close this one in favor of #68256 |
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