From 7ce22fbe6f8495f725ba7314ac00aeba10214f9b Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Mon, 11 Sep 2017 14:36:09 -0400 Subject: [PATCH] Add check for priority before using the value --- xCAT-server/lib/xcat/plugins/openbmc.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 16599a1e4..064b19fdf 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1399,7 +1399,10 @@ 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}; + my $priority_value = -1; + if (defined($content{Priority})) { + $priority_value = $content{Priority}; + } # # For 'rinv firm', only print Active software, unless verbose is specified #