From c945e35bd2159647d6dba2313d3412c1ea8e1e14 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jul 2008 13:39:07 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/hosts.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {