2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #3828 from gurevichmark/openbmc_enhance_rflash

Do not dispay firmware entry if no Version attribute
This commit is contained in:
Victor Hu 2017-08-31 20:27:27 -04:00 committed by GitHub
commit ba0e7e8bb4

View File

@ -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 ];
}