2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #1066 from whowutwut/bmc_user

bmcdiscover command does not allow -u without -p specified in command
This commit is contained in:
Xiaopeng Wang 2016-05-07 18:08:21 +08:00
commit d0de652a87

View File

@ -206,11 +206,11 @@ sub bmcdiscovery_processargs {
#
($bmc_user, $bmc_pass) = bmcaccount_from_passwd();
# overwrite the default user/pass with what is passed in
if ($::opt_U) {
$bmc_user = $::opt_U;
}
if ($::opt_P) {
$bmc_pass = $::opt_P;
if ($::opt_U) {
$bmc_user = $::opt_U;
}
}
#########################################