2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-15 10:50:28 +00:00

Do not dispay firmware entry if no Version attribute

This commit is contained in:
Mark Gurevich
2017-08-31 14:24:42 -04:00
parent d4174adf24
commit 5055ff4b04

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