2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

modify depending on comments

This commit is contained in:
hu-weihua
2017-09-29 02:09:09 -04:00
parent ad9179b18f
commit bcee7b19e0

View File

@ -422,10 +422,10 @@ sub switch_discovery {
foreach my $switch (keys %monitor_switch) {
if ($monitor_switch{$switch}{discover_status} == 0b001) {
$node_error_info{$switch} = "be discvoered, but failed to match pre-defined node $pre_def_node_prefix$switch";
$node_error_info{$switch} = "be discovered, but failed to match pre-defined node $pre_def_node_prefix$switch";
++$failed_switch_num;
} elsif ($monitor_switch{$switch}{discover_status} == 0b011) {
$node_error_info{$switch} = "be discvoered and matched, but failed to update pre-defined node info in DB";
$node_error_info{$switch} = "be discovered and matched, but failed to update pre-defined node info in DB";
++$failed_switch_num;
} elsif ($monitor_switch{$switch}{discover_status} == 0b111) {
push @success_be_discovered_switches, $switch;