api types: prune keep options: also check weekly in keeps_something

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-06-01 14:30:24 +02:00
parent 3cf12ffac9
commit a8d3f1943b

View File

@ -589,6 +589,7 @@ impl KeepOptions {
self.keep_last.unwrap_or(0)
+ self.keep_hourly.unwrap_or(0)
+ self.keep_daily.unwrap_or(0)
+ self.keep_weekly.unwrap_or(0)
+ self.keep_monthly.unwrap_or(0)
+ self.keep_yearly.unwrap_or(0)
> 0