From 03a7e660d536aac8dcbe54f19e05314d36b4dd5b Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 24 Oct 2017 11:49:38 -0400 Subject: [PATCH] Remove the check for {Priority} because a valid value is 0 --- xCAT-server/lib/xcat/plugins/openbmc.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index c545983ee..bcc954934 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -2292,7 +2292,8 @@ sub rflash_response { if (defined($content{Purpose}) and $content{Purpose}) { $update_purpose = (split(/\./, $content{Purpose}))[ -1 ]; } - if (defined($content{Priority}) and $content{Priority}) { + # Just check defined because priority=0 is a valid value + if (defined($content{Priority})) { $update_priority = (split(/\./, $content{Priority}))[ -1 ]; } if (exists($functional->{$update_id}) ) {