fix(xo-server/sr/probeHba): cast size to number (#3806)

Fixes #3805

This fixes an exception thrown when list of discovered HBAs return string
instead of integer as disk size.
This commit is contained in:
Shayan Ostadhassan 2018-12-19 14:32:58 +03:30 committed by Pierre Donias
parent 917701e2f6
commit 6f35a1a850

View File

@ -431,7 +431,7 @@ export async function probeHba({ host }) {
hba: hbaDevice.hba.trim(),
path: hbaDevice.path.trim(),
scsiId: hbaDevice.SCSIid.trim(),
size: hbaDevice.size.trim(),
size: +hbaDevice.size.trim(),
vendor: hbaDevice.vendor.trim(),
})
})