From 1cf1c78da1178e7e40f27d7696dd2b8c8bce72c4 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 22 Jul 2008 12:48:31 +0000 Subject: [PATCH] -Have IPMI plugin perform table call at scale git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 681d8b435..056d47221 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4735,6 +4735,7 @@ sub process_request { #my @threads; my @donargs=(); + my $ipmihash = ipmitab->getNodesAttribs($noderange,['bmc','username','password']) ; foreach(@$noderange) { my $node=$_; my $nodeuser=$ipmiuser; @@ -4742,7 +4743,7 @@ sub process_request { my $nodeip = $node; my $ent; if (defined($ipmitab)) { - $ent=$ipmitab->getNodeAttribs($node,['bmc','username','password']) ; + $ent=$ipmihash->{$node}->[0]; if (ref($ent) and defined $ent->{bmc}) { $nodeip = $ent->{bmc}; } if (ref($ent) and defined $ent->{username}) { $nodeuser = $ent->{username}; } if (ref($ent) and defined $ent->{password}) { $nodepass = $ent->{password}; }