fix(xo-server/file restore): dont fail on LVM partitions

Fixes xoa-support#2640

Introduced by 48ce7df43

The issue was due to object spreading copying only own properties but `path` is now an inherited property due to `dedupeUnmount`.
This commit is contained in:
Julien Fontanet 2020-07-03 11:01:38 +02:00
parent 44ff2f872d
commit cbada35788
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Restore legacy, File restore legacy] Fix mount error in case of existing proxy remotes (PR [#5124](https://github.com/vatesfr/xen-orchestra/pull/5124))
- [File restore] Don't fail with `TypeError [ERR_INVALID_ARG_TYPE]` on LVM partitions
### Packages to release

View File

@ -366,7 +366,7 @@ export default class BackupNgFileRestore {
).lv_path
)
unmountQueue.push(partition.unmount)
return { ...partition, unmount }
return { __proto__: partition, unmount }
}
return mountPartition(