diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index 3a997a774..870e2ddf6 100644 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -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 {