Skip to content

Commit

Permalink
return → await in the installation loop
Browse files Browse the repository at this point in the history
  • Loading branch information
pdonias committed Mar 27, 2019
1 parent 17c47b3 commit 5e8bce1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/xo-server/src/xapi/mixins/patching.js
Expand Up @@ -22,7 +22,7 @@ import { extractOpaqueRef, useUpdateSystem } from '../utils'
// _listInstalledPatches XS installed patches on the host - Map of Booleans
// _listInstallablePatches XS (host, requested patches) → sorted patches that are not installed and not conflicting - Array of Objects
// listMissingPatches HL: installable patches (XS) or updates (XCP) - Array of Objects
// findPatches HL: get XS patches objects from names
// findPatches HL: get XS patches IDs from names
// # INSTALL
// _xcpUpdate XCP yum update
// _legacyUploadPatch XS legacy upload
Expand Down Expand Up @@ -313,7 +313,8 @@ export default {
const host = this.getObject(hostId)
return _isXcp(host)
? this._listXcpUpdates(host)
: this._listInstallablePatches(host)
: // TODO: list paid patches of free hosts as well so the UI can show them
this._listInstallablePatches(host)
},

// convenient method to find which patches should be installed from a
Expand Down Expand Up @@ -455,7 +456,7 @@ export default {
}

log.debug(`installing patch ${p.uuid}`)
return this.call(
await this.call(
'pool_update.pool_apply',
await this.call('pool_update.introduce', vdi.$ref)
)
Expand Down

0 comments on commit 5e8bce1

Please sign in to comment.