api: tape/restore: skip snapshot if owner check failed
instead of aborting the whole restore Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c94d2867c1
commit
8915c1e74a
|
@ -433,12 +433,14 @@ fn restore_list_worker(
|
||||||
datastore.create_locked_backup_group(backup_dir.as_ref(), restore_owner)?;
|
datastore.create_locked_backup_group(backup_dir.as_ref(), restore_owner)?;
|
||||||
if restore_owner != &owner {
|
if restore_owner != &owner {
|
||||||
// only the owner is allowed to create additional snapshots
|
// only the owner is allowed to create additional snapshots
|
||||||
bail!(
|
task_warn!(
|
||||||
|
worker,
|
||||||
"restore '{}' failed - owner check failed ({} != {})",
|
"restore '{}' failed - owner check failed ({} != {})",
|
||||||
snapshot,
|
snapshot,
|
||||||
restore_owner,
|
restore_owner,
|
||||||
owner
|
owner
|
||||||
);
|
);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (media_id, file_num) = if let Some((media_uuid, file_num)) =
|
let (media_id, file_num) = if let Some((media_uuid, file_num)) =
|
||||||
|
|
Loading…
Reference in New Issue