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:
parent
917701e2f6
commit
6f35a1a850
@ -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(),
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user