Skip to content

Commit

Permalink
feat(xo-server/vdi.migrate): returns the new UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-f committed Feb 28, 2025
1 parent 9033577 commit 39613ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
<!--packages-start-->

- @xen-orchestra/web minor
- xo-server patch

<!--packages-end-->
4 changes: 2 additions & 2 deletions packages/xo-server/src/api/vdi.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ export async function migrate({ vdi, sr, resourceSet }) {
}
}

await xapi.moveVdi(vdi._xapiRef, sr._xapiRef)
const { uuid } = await xapi.moveVdi(vdi._xapiRef, sr._xapiRef)

return true
return uuid
}

migrate.params = {
Expand Down

0 comments on commit 39613ff

Please sign in to comment.