mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +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:
@ -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;
|
||||
|
Reference in New Issue
Block a user