mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-15 02:40:28 +00:00
Do not dispay firmware entry if no Version attribute
This commit is contained in:
@ -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 ];
|
||||
}
|
||||
|
Reference in New Issue
Block a user