mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-04 04:20:08 +00:00
Merge pull request #2720 from xuweibj/I2348
fix issue 2348, check error msg when run bmcdiscover
This commit is contained in:
commit
4eea322125
@ -896,6 +896,11 @@ sub bmcdiscovery_ipmi {
|
||||
my $output = xCAT::Utils->runcmd("$icmd", -1);
|
||||
if ($output =~ $bmcstr) {
|
||||
|
||||
if ($output =~ /RAKP 2 message indicates an error : (.+)\nError: (.+)/) {
|
||||
xCAT::MsgUtils->message("E", { data => ["$2: $1 for $ip"] }, $::CALLBACK);
|
||||
return 1;
|
||||
}
|
||||
|
||||
# The output contains System Power indicated the username/password is correct, then try to get MTMS
|
||||
if ($output =~ /System Power\s*:\s*\S*/) {
|
||||
my $mtm = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user