Skip to content

Commit

Permalink
fix(xo-server/importVmBackupNg): set result when restoring via XO Pro…
Browse files Browse the repository at this point in the history
…xy (#7026)
  • Loading branch information
julien-f authored and ByScripts committed Sep 14, 2023
1 parent 8d82236 commit 3ce7403
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Backup/Restore] Fix `Cannot read properties of undefined (reading 'id')` error when restoring via an XO Proxy (PR [#7026](https://github.com/vatesfr/xen-orchestra/pull/7026))

### Packages to release

> When modifying a package, add it here with its release type.
Expand All @@ -29,6 +31,7 @@
<!--packages-start-->

- xo-server patch
- xo-server-netbox minor

<!--packages-end-->
2 changes: 1 addition & 1 deletion packages/xo-server/src/_handleBackupLog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function forwardResult(log) {
// it records logs generated by `@xen-orchestra/backups/Task#run`
export const handleBackupLog = (
log,
{ vmBackupInfo, app, jobName, logger, localTaskIds, rootTaskId, runJobId = rootTaskId, handleRootTaskId }
{ vmBackupInfo, app, jobName, logger, localTaskIds, rootTaskId, runJobId, handleRootTaskId }
) => {
const { event, message, parentId, taskId } = log

Expand Down
1 change: 1 addition & 0 deletions packages/xo-server/src/xo-mixins/backups-ng/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ export default class BackupNg {
this._runningRestores.add(id)
rootTaskId = id
},
rootTaskId,
})
}
} catch (error) {
Expand Down

0 comments on commit 3ce7403

Please sign in to comment.