mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-03 09:44:05 +00:00
server: push: fix supported api version check
The current version check does not cover cases where the minor version is 3, but the release version is below 11. Fix this by extending the check accordingly. Signed-off-by: Christian Ebner <c.ebner@proxmox.com> [ TL: re-sort line to go from bigger to smaller ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
38d961f9e4
commit
b711ccf0ad
@ -132,7 +132,8 @@ impl PushParameters {
|
||||
}
|
||||
|
||||
let supports_prune_delete_stats = api_version.major > 3
|
||||
|| (api_version.major == 3 && api_version.minor >= 2 && api_version.release >= 11);
|
||||
|| (api_version.major == 3 && api_version.minor >= 3)
|
||||
|| (api_version.major == 3 && api_version.minor == 2 && api_version.release >= 11);
|
||||
|
||||
let target = PushTarget {
|
||||
remote,
|
||||
|
Loading…
Reference in New Issue
Block a user