fixed error intruduced by revision 9621

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2011-05-18 18:23:56 +00:00
parent 814b400c01
commit 50c5175b3d

View File

@ -630,11 +630,11 @@ sub preprocess_request
$snonly=$href->{value};
}
}
my @requests=();
my $hasHierarchy=0;
if (($snonly == 1) && (! grep /-n/,@{$req->{arg}})) {
my @nodes=();
my @nodes=();
if (! grep /-n/,@{$req->{arg}}) {
if ($req->{node}) {
@nodes=@{$req->{node}};
}
@ -661,7 +661,10 @@ sub preprocess_request
}
}
}
}
#print "nodes=@nodes\n";
if (($snonly == 1) && (! grep /-n/,@{$req->{arg}})) {
if (@nodes > 0) {
my $sn_hash =xCAT::Utils->getSNformattedhash(\@nodes,"xcat","MN");
if ($localonly) {