diff --git a/perl-xCAT/xCAT/FSPinv.pm b/perl-xCAT/xCAT/FSPinv.pm index dc4ad9895..f2ca0be02 100644 --- a/perl-xCAT/xCAT/FSPinv.pm +++ b/perl-xCAT/xCAT/FSPinv.pm @@ -260,7 +260,7 @@ sub deconfig { ##################################### my $decfg = XMLin($data); my $node = $decfg->{NODE}; - if( defined($node) ) { + if( defined($node) && exists($node->{Location_code}) ) { push @result,[$name,"Deconfigured resources", 0]; push @result,[$name,"Location_code RID Call_Out_Method Call_Out_Hardware_State TYPE", 0]; push @result,[$name,"$node->{Location_code} $node->{RID}", 0];