fix for bug 2866597

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-09-29 09:49:54 +00:00
parent 90847d9be6
commit 66c9273207

View File

@ -232,9 +232,13 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
foreach (@allnodeset) {
push @nodes,$_->{node};
}
my $nbyc = nodesbycriteria(\@nodes,[$atom])->{$atom};
if (defined $nbyc) {
return @$nbyc;
my $nbyc_ref = nodesbycriteria(\@nodes,[$atom]);
if ($nbyc_ref)
{
my $nbyc = $nbyc_ref->{$atom};
if (defined $nbyc) {
return @$nbyc;
}
}
return ();
}