2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-16 19:30:26 +00:00

Merge pull request 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

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