From e8793b3126e85c88b797eabef4d6750979ef9db1 Mon Sep 17 00:00:00 2001 From: Pierre Donias Date: Thu, 28 Mar 2019 16:26:40 +0100 Subject: [PATCH] Fix XCP install on single host --- packages/xo-server/src/xapi/mixins/patching.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/xo-server/src/xapi/mixins/patching.js b/packages/xo-server/src/xapi/mixins/patching.js index 9997ab65737..5249e61c0f5 100644 --- a/packages/xo-server/src/xapi/mixins/patching.js +++ b/packages/xo-server/src/xapi/mixins/patching.js @@ -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 => {