-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:
jbjohnso 2008-07-23 13:39:07 +00:00
parent 2f302250be
commit c945e35bd2

View File

@ -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 {