2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

update bmcdiscover related rest api

This commit is contained in:
bybai 2015-08-11 02:45:24 -04:00
parent 550a6fc46e
commit d3e1ab3cd4

View File

@ -2357,10 +2357,15 @@ sub bmccheckhdl {
if ($params->{'resourcename'} eq "checkbmcauth") {
if (isGET()) {
push @args, "-i";
push @args, $bmc_ip;
push @args, "-u";
push @args, $bmc_user;
if ( defined($bmc_user) && $bmc_user ne "none")
{
push @args, "-u";
push @args, $bmc_user;
}
push @args, "-p";
push @args, $bmc_pw;
push @args, "-c";
@ -2371,11 +2376,14 @@ sub bmccheckhdl {
if (isGET()) {
push @args, "-i";
push @args, $bmc_ip;
push @args, "-u";
push @args, $bmc_user;
if ( defined($bmc_user) && $bmc_user ne "none" )
{
push @args, "-u";
push @args, $bmc_user;
}
push @args, "-p";
push @args, $bmc_pw;
push @args, "-s";
push @args, "--ipsource";
}
}