mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-13 21:05:25 +00:00
api: tape restore: warn if snapshot could not get parsed
unlikely, but cost is far too low to not do it. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
72b550a836
commit
ce9b00e7e3
@ -633,6 +633,10 @@ fn restore_list_worker(
|
||||
for (store, snapshot) in catalog.list_snapshots() {
|
||||
let (ns, dir) = match parse_ns_and_snapshot(&snapshot) {
|
||||
Ok((ns, dir)) if store_map.has_full_mapping(store, &ns) => (ns, dir),
|
||||
Err(err) => {
|
||||
task_warn!(worker, "couldn't parse snapshot {snapshot} - {err}");
|
||||
continue;
|
||||
},
|
||||
_ => continue,
|
||||
};
|
||||
let snapshot = print_ns_and_snapshot(&ns, &dir);
|
||||
|
Loading…
Reference in New Issue
Block a user