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:
parent
814b400c01
commit
50c5175b3d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user