fix(backups/RemoteAdapter#cleanVm): don't fail if no vdis dir

Detected in #5756

Necessary to handle VMs with only full backups.
This commit is contained in:
Julien Fontanet 2021-05-02 10:35:06 +02:00
parent f86ec98e05
commit bb928bbd73
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ const listVhds = async (handler, vmDir) => {
const vhds = [] const vhds = []
await asyncMap( await asyncMap(
await handler.list(`${vmDir}/vdis`, { await handler.list(`${vmDir}/vdis`, {
ignoreMissing: true,
prependDir: true, prependDir: true,
}), }),
async jobDir => async jobDir =>

View File

@ -29,3 +29,4 @@
> In case of conflict, the highest (lowest in previous list) `$version` wins. > In case of conflict, the highest (lowest in previous list) `$version` wins.
- @xen-orchestra/fs minor - @xen-orchestra/fs minor
- @xen-orchestra/backups patch