From 7b4db764a3bbd3d0cf2b312cf236e7ee7a76aae4 Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 1 Jul 2011 03:09:54 +0000 Subject: [PATCH] if no Location_code,it will return NO Deconfigured resources git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPinv.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];