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:
commit
d0de652a87
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
#########################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user