chore(Xapi#_getXenUpdates): use ensureArray()
This commit is contained in:
parent
1796c7bab8
commit
ea1a7f9376
@ -455,10 +455,7 @@ export default class Xapi extends XapiBase {
|
|||||||
const resolveVersionPatches = function (uuids) {
|
const resolveVersionPatches = function (uuids) {
|
||||||
const versionPatches = createRawObject()
|
const versionPatches = createRawObject()
|
||||||
|
|
||||||
if (uuids && !Array.isArray(uuids)) {
|
forEach(ensureArray(uuids), ({uuid}) => {
|
||||||
uuids = [uuids]
|
|
||||||
}
|
|
||||||
forEach(uuids, ({uuid}) => {
|
|
||||||
versionPatches[uuid] = patches[uuid]
|
versionPatches[uuid] = patches[uuid]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user