From 03f3fe0c6e66122725cc9ee7a3bec7154abb8d56 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 10 Nov 2017 15:08:09 -0500 Subject: [PATCH] Fix bug in the output if rinv firm verbose that was displaying * for all active listings --- xCAT-server/lib/xcat/plugins/openbmc.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 1f08c0a31..84da22a3b 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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);