2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #4283 from whowutwut/4236

Fix bug in the output if rinv firm verbose that was displaying * for all listings
This commit is contained in:
xuweibj 2017-11-14 09:55:34 +08:00 committed by GitHub
commit 5f4051f3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);