From fb9edfa7dd4b68f86f36b8ec785176fb92e02194 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 18 May 2015 01:56:59 -0400 Subject: [PATCH] won't update ipmi table inside rspconfig "userid=N" "username=" "password=" command --- xCAT-server/lib/xcat/plugins/ipmi.pm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index d2c5fd4ab..574ceeb72 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -763,19 +763,19 @@ sub password_set { setpassword($sessdata); return; } - - my $ipmitab = xCAT::Table->new('ipmi'); - if (!$ipmitab) { - xCAT::SvrUtils::sendmsg([1, "Failed to update ipmi table."],$callback,$sessdata->{node},%allerrornodes); - } else { - if ($sessdata->{subcommand} =~ m/username/) { - $ipmitab->setNodeAttribs($sessdata->{node}, {'username'=>$sessdata->{newusername}}); - xCAT::SvrUtils::sendmsg("set username Done",$callback,$sessdata->{node},%allerrornodes); - } elsif ($sessdata->{subcommand} =~ m/password/) { - $ipmitab->setNodeAttribs($sessdata->{node}, {'password'=>$sessdata->{newpassword}}); - xCAT::SvrUtils::sendmsg("set password Done",$callback,$sessdata->{node},%allerrornodes); - } - } + # Won't update ipmi table, since option username=<> and password=<> can be run Respectively + #my $ipmitab = xCAT::Table->new('ipmi'); + #if (!$ipmitab) { + # xCAT::SvrUtils::sendmsg([1, "Failed to update ipmi table."],$callback,$sessdata->{node},%allerrornodes); + #} else { + # if ($sessdata->{subcommand} =~ m/username/) { + # $ipmitab->setNodeAttribs($sessdata->{node}, {'username'=>$sessdata->{newusername}}); + # xCAT::SvrUtils::sendmsg("set username Done",$callback,$sessdata->{node},%allerrornodes); + # } elsif ($sessdata->{subcommand} =~ m/password/) { + # $ipmitab->setNodeAttribs($sessdata->{node}, {'password'=>$sessdata->{newpassword}}); + # xCAT::SvrUtils::sendmsg("set password Done",$callback,$sessdata->{node},%allerrornodes); + # } + #} $sessdata->{subcommand} = shift @{$sessdata->{extraargs}}; if ($sessdata->{subcommand} and $sessdata->{subcommand} ne '') { setpassword($sessdata);