mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-21 11:51:10 +00:00
Improve the output message when switch information fails to refresh
This commit is contained in:
@@ -2037,7 +2037,7 @@ sub query_cec_info {
|
||||
if (scalar(@$rethash)) {
|
||||
push @result, @$rethash;
|
||||
} else {
|
||||
push @result, [ $name, "No information got", -1 ];
|
||||
push @result, [ $name, "No information obtained.", -1 ];
|
||||
last;
|
||||
}
|
||||
$lpar_hash{$name} = \%tmp_hash;
|
||||
@@ -2048,7 +2048,7 @@ sub query_cec_info {
|
||||
if (scalar(@$rethash)) {
|
||||
push @result, @$rethash;
|
||||
} else {
|
||||
push @result, [ @td[3], "No information got", -1 ];
|
||||
push @result, [ @td[3], "No information obtained.", -1 ];
|
||||
last;
|
||||
}
|
||||
|
||||
|
@@ -329,14 +329,14 @@ sub dump_mac_info {
|
||||
foreach my $switch (keys %{ $self->{switchparmhash} }) {
|
||||
if ($dump_all_switches or defined($switches_to_dump{$switch})) {
|
||||
if ($self->{show_verbose_info}) {
|
||||
xCAT::MsgUtils->message("I", { data => ["<INFO>$switch: Start to get information"] }, $self->{callback});
|
||||
xCAT::MsgUtils->message("I", { data => ["<INFO>$switch: Attempting to refresh switch information..."] }, $self->{callback});
|
||||
}
|
||||
$self->refresh_switch(undef, $community, $switch);
|
||||
if ($self->{show_verbose_info}) {
|
||||
xCAT::MsgUtils->message("I", { data => ["<INFO>$switch: Finish to get information"] }, $self->{callback});
|
||||
xCAT::MsgUtils->message("I", { data => ["<INFO>$switch: Finished refreshing switch information."] }, $self->{callback});
|
||||
}
|
||||
if (!defined($self->{macinfo}->{$switch})) {
|
||||
$ret{$switch}->{ErrorStr} = "No information get";
|
||||
$ret{$switch}->{ErrorStr} = "No switch information obtained.";
|
||||
foreach my $defportname (keys %{ $self->{switches}->{$switch} }) {
|
||||
$ret{$switch}->{$defportname}->{Node} = $self->{switches}->{$switch}->{$defportname};
|
||||
}
|
||||
|
Reference in New Issue
Block a user