-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
This commit is contained in:
jbjohnso 2008-07-22 12:48:31 +00:00
parent 71b7c1b735
commit 1cf1c78da1

View File

@ -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}; }