2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

When doing rinv, the message comes out:

Recieved incorrect data from BMC.

Fix this by checking if the array value is defined, it not
return clear;undef
This commit is contained in:
Victor Hu
2015-10-09 13:56:38 -04:00
parent ac063c6e11
commit 317d7cf08e

View File

@ -3428,6 +3428,9 @@ sub parsefru {
unless (ref $bytes) {
return $bytes,undef;
}
if (!defined $bytes->[0]) {
return "clear",undef;
}
unless ($bytes->[0]==1) {
if ($bytes->[0]==0 or $bytes->[0]==0xff) { #not in spec, but probably unitialized, xCAT probably will rewrite fresh
return "clear",undef;