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
This commit is contained in:
jjhua 2011-07-01 03:09:54 +00:00
parent 8342e0fb52
commit 7b4db764a3

View File

@ -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];