Skip to content

Commit

Permalink
fix(xo-server/resourceSets): adding VM in resource set displayed erro…
Browse files Browse the repository at this point in the history
…r even when succeeded
  • Loading branch information
Pizzosaure committed Nov 2, 2023
1 parent a3ea70c commit 0b8525f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/xo-server/src/xo-mixins/resource-sets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ export default class {

async shareVmResourceSet(vmId) {
const xapi = this._app.getXapi(vmId)
await xapi.barrier(xapi.getObject(vmId).$ref)
const resourceSetId = xapi.xo.getData(vmId, 'resourceSet')
if (resourceSetId === undefined) {
throw new Error('the vm is not in a resource set')
Expand Down

0 comments on commit 0b8525f

Please sign in to comment.