2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Fix bug in the output if rinv firm verbose that was displaying * for all active listings

This commit is contained in:
Victor Hu 2017-11-10 15:08:09 -05:00
parent 7f612095d0
commit 03f3fe0c6e

View File

@ -1830,10 +1830,12 @@ sub rinv_response {
# to cause the sorting of this line before any additional info lines
#
$content_info = "$purpose_value Firmware Product: $content{Version} ($activation_value)";
my $indicator = "*";
my $indicator = "";
if ($priority_value == 0 and %{$functional} and !exists($functional->{$sw_id})) {
# indicate that a reboot is needed if priority = 0 and it's not in the functional list
$indicator = "+";
} elsif ($priority_value == 0 and %{$functional} and exists($functional->{$sw_id})) {
$indicator = "*";
}
$content_info .= $indicator;
push (@sorted_output, $content_info);