replace deprecated list_backup_group from BackupInfo with Datastore one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2022-04-15 10:50:28 +02:00
parent c90dbb5c7b
commit 7d9cb8c458
5 changed files with 71 additions and 78 deletions

View File

@ -537,7 +537,7 @@ pub fn verify_all_backups(
}
};
let mut list = match BackupInfo::list_backup_groups(&verify_worker.datastore.base_path()) {
let mut list = match verify_worker.datastore.list_backup_groups() {
Ok(list) => list
.into_iter()
.filter(|group| !(group.backup_type() == "host" && group.backup_id() == "benchmark"))