2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-31 08:41:18 +00:00

Overwriting the -u option passed in to bmcdiscover command was

only getting executed under a test for the -p option.  Move the
check outside so we overlay the default if any option is specified
This commit is contained in:
Victor Hu
2016-05-06 11:28:04 -04:00
parent 061ce1759f
commit 3f54b456d2

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