From e5623c7663b39e16a7ff409149be4a7ee4716634 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Mon, 11 Sep 2017 10:15:55 -0400 Subject: [PATCH] Indicate software at priority 0 with a '*' --- xCAT-server/lib/xcat/plugins/openbmc.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 0a76ce69f..16599a1e4 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1399,15 +1399,20 @@ sub rinv_response { my $purpose_value = uc ((split(/\./, $content{Purpose}))[-1]); $purpose_value = "[$sw_id]$purpose_value"; my $activation_value = (split(/\./, $content{Activation}))[-1]; + my $priority_value = $content{Priority}; # # For 'rinv firm', only print Active software, unless verbose is specified # - if ($activation_value =~ "Active" or $::VERBOSE) { + if (($activation_value =~ "Active" and $priority_value == 0) or $::VERBOSE) { # # The space below between "Firmware Product Version:" and $content{Version} is intentional # to cause the sorting of this line before any additional info lines # $content_info = "$purpose_value Firmware Product: $content{Version} ($activation_value)"; + if ($priority_value == 0) { + # For now, indicate priority 0 software levels with an '*' + $content_info .= "*"; + } push (@sorted_output, $content_info); if (defined($content{ExtendedVersion}) and $content{ExtendedVersion} ne "") {