We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6cbc7 commit 20dfcdcCopy full SHA for 20dfcdc
salt/states/file.py
@@ -2032,6 +2032,11 @@ def tidied(
2032
time_comparison = "atime"
2033
time_comparison = time_comparison.lower()
2034
2035
+ # Convert size with human units to bytes
2036
+ if isinstance(size, str):
2037
+ # add handle_metric=True when #61833 is merged
2038
+ size = salt.utils.stringutils.human_to_bytes(size)
2039
+
2040
# Define some variables
2041
todelete = []
2042
today = date.today()
0 commit comments