do verification: always verify if manifest load fails

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-28 13:56:49 +01:00
parent 328df3b507
commit 5428f5ca29
2 changed files with 2 additions and 2 deletions

View File

@ -186,4 +186,4 @@ pub fn complete_verification_job_id(_arg: &str, _param: &HashMap<String, String>
Ok((data, _digest)) => data.sections.iter().map(|(id, _)| id.to_string()).collect(),
Err(_) => return vec![],
}
}
}

View File

@ -34,7 +34,7 @@ pub fn do_verification_job(
}
let manifest = match datastore2.load_manifest(&backup_info.backup_dir) {
Ok((manifest, _)) => manifest,
Err(_) => return false,
Err(_) => return true,
};
let raw_verify_state = manifest.unprotected["verify_state"].clone();