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:
commit
ba0e7e8bb4
@ -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 ];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user