Skip to content

Commit

Permalink
Fix XCP install on single host
Browse files Browse the repository at this point in the history
  • Loading branch information
pdonias committed Mar 28, 2019
1 parent 945fee0 commit e8793b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/xo-server/src/xapi/mixins/patching.js
Expand Up @@ -334,6 +334,11 @@ export default {
_xcpUpdate(hosts) {
if (hosts === undefined) {
hosts = filter(this.objects.all, { $type: 'host' })
} else {
hosts = filter(
this.objects.all,
obj => obj.$type === 'host' && hosts.includes(obj.$id)
)
}

return asyncMap(hosts, async host => {
Expand Down

0 comments on commit e8793b3

Please sign in to comment.