Skip to content

Commit

Permalink
fix(xo-server/Import): userdevice is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Feb 7, 2024
1 parent 2498a4f commit a482c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/xo-server/src/xo-mixins/migrate-vm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default class MigrateVm {
VDI: vdi.$ref,
VM: vm.$ref,
device: `xvd${String.fromCharCode('a'.charCodeAt(0) + userdevice)}`,
userdevice: userdevice < 3 ? userdevice : userdevice + 1,
userdevice: String(userdevice < 3 ? userdevice : userdevice + 1),
})
} else {
vhd = await openDeltaVmdkasVhd(esxi, datastore, path + '/' + fileName, parentVhd, {
Expand Down Expand Up @@ -316,7 +316,7 @@ export default class MigrateVm {
VDI: vdi.$ref,
VM: vm.$ref,
device: `xvd${String.fromCharCode('a'.charCodeAt(0) + userdevice)}`,
userdevice: userdevice < 3 ? userdevice : userdevice + 1,
userdevice: String(userdevice < 3 ? userdevice : userdevice + 1),
})
} else {
if (parentVhd === undefined) {
Expand Down

0 comments on commit a482c47

Please sign in to comment.