fixed 3370848, when there are some unreadable XML data, it will output some error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10161 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a2b66d8bcc
commit
cd1db90d59
@ -262,7 +262,16 @@ sub deconfig {
|
||||
#####################################
|
||||
# Format fsp-api results
|
||||
#####################################
|
||||
my $decfg = XMLin($data);
|
||||
#my $decfg = XMLin($data);
|
||||
my $decfg;
|
||||
eval {
|
||||
$decfg = XMLin($data);
|
||||
};
|
||||
if( $@ ) {
|
||||
push @result,[$name, "Error: there are some unreadable XML data from the firmware. Please check with the data provider.", -1];
|
||||
return (\@result);
|
||||
}
|
||||
|
||||
my $node = $decfg->{NODE};
|
||||
if( defined($node) && exists($node->{Location_code}) ) {
|
||||
push @result,[$name,"Deconfigured resources", 0];
|
||||
|
Loading…
Reference in New Issue
Block a user