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:
parent
44ff2f872d
commit
cbada35788
@ -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
|
||||
|
||||
|
@ -366,7 +366,7 @@ export default class BackupNgFileRestore {
|
||||
).lv_path
|
||||
)
|
||||
unmountQueue.push(partition.unmount)
|
||||
return { ...partition, unmount }
|
||||
return { __proto__: partition, unmount }
|
||||
}
|
||||
|
||||
return mountPartition(
|
||||
|
Loading…
Reference in New Issue
Block a user