From 5055ff4b042965fb92f54eb14cf8b90db2c5f01e Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 31 Aug 2017 14:24:42 -0400 Subject: [PATCH] Do not dispay firmware entry if no Version attribute --- xCAT-server/lib/xcat/plugins/openbmc.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index df9ca547a..bc70ff18b 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1910,6 +1910,10 @@ sub rflash_response { if (defined($content{Version}) and $content{Version}) { $update_version = $content{Version}; } + else { + # Entry has no Version attribute, skip listing it + next; + } if (defined($content{Activation}) and $content{Activation}) { $update_activation = (split(/\./, $content{Activation}))[ -1 ]; }