Skip to content
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

[FEATURE REQUEST] increase file.tidied flexibility with regard to age and size #62678

Closed
nicholasmhughes opened this issue Sep 13, 2022 · 0 comments · Fixed by #62679
Closed
Labels
Feature new functionality including changes to functionality and code refactors, etc. State-Module

Comments

@nicholasmhughes
Copy link
Collaborator

Describe the solution you'd like
The current decision logic only allows an "OR" between age and size. You cannot configure "AND" logic so both age and size limit breaches are required to trigger removal. Additionally, age and size cannot be matched independently with setting the other parameter to a very large value. For instance, you can have age-only removal if you set size to something large you wouldn't see on your system... like 999T

Describe alternatives you've considered
Workarounds usually consist of "shelling out" to cmd.run and a find command with the -delete switch...

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

@nicholasmhughes nicholasmhughes added Feature new functionality including changes to functionality and code refactors, etc. State-Module labels Sep 13, 2022
nicholasmhughes added a commit to nicholasmhughes/salt that referenced this issue Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. State-Module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant