From cc2148cedd4ffc2a6faafbb100e21d13a8fdcb84 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 29 Nov 2012 20:54:12 +0000 Subject: [PATCH] Change argument name in preparation for refactor of setupIMM for common use between slpdiscover and remoteimmsetup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/slpdiscover.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/slpdiscover.pm b/xCAT-server/lib/xcat/plugins/slpdiscover.pm index fd8d37e87..6ca018acb 100644 --- a/xCAT-server/lib/xcat/plugins/slpdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/slpdiscover.pm @@ -197,14 +197,14 @@ sub process_request { sub setupIMM { my $node = shift; my %args = @_; - my $slpdata = $args{slpdata}; + my $nodedata = $args{nodedata}; my $ipmitab = xCAT::Table->new('ipmi',-create=>1); my $ient = $ipmitab->getNodeAttribs($node,[qw/bmc bmcid/],prefetchcache=>1); my $ipmiauthmap = xCAT::PasswordUtils::getIPMIAuth(noderange=>[$node]); my $newaddr; if ($ient) { my $bmcid=$ient->{bmcid}; - if ($bmcid and $slpdata->{macaddress} =~ /$bmcid/) { + if ($bmcid and $nodedata->{macaddress} =~ /$bmcid/) { sendmsg("The IMM has been configured (ipmi.bmcid). Skipped.",$callback, $node); return; } #skip configuration, we already know this one @@ -258,7 +258,7 @@ sub setupIMM { } } $ssh->close(); - $ipmitab->setNodeAttribs($node,{bmcid=>$slpdata->{macaddress}}); + $ipmitab->setNodeAttribs($node,{bmcid=>$nodedata->{macaddress}}); } exit(0); } @@ -280,7 +280,7 @@ sub configure_hosted_elements { } if ($doneaddrs{$node}) { next; } $doneaddrs{$node}=1; - setupIMM($node,slpdata=>$immdata,curraddr=>$addr,cliusername=>$user,clipassword=>$pass); + setupIMM($node,nodedata=>$immdata,curraddr=>$addr,cliusername=>$user,clipassword=>$pass); } else { sendmsg(": Ignoring target in bay $slot, no node found with mp.mpa/mp.id matching",$callback,$cmm); }