-Change hosts call to getNodeAttribs to perform at-scale call getNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2f302250be
commit
c945e35bd2
@ -67,8 +67,9 @@ sub process_request {
|
||||
}
|
||||
|
||||
if ($req->{node}) {
|
||||
my $hostscache = $hoststab->getNodesAttribs($req->{node},[qw(ip node hostnames)]);
|
||||
foreach(@{$req->{node}}) {
|
||||
my $ref = $hoststab->getNodeAttribs($_,[qw(ip node hostnames)]);
|
||||
my $ref = $hostscache->{$_}->[0]; #$hoststab->getNodeAttribs($_,[qw(ip node hostnames)]);
|
||||
addnode $ref->{node},$ref->{ip},$ref->{hostnames};
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user