2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #4146 from whowutwut/rflash_list_noderange

[OpenBMC] rflash, fix bug where processing functional data is not a HASH
This commit is contained in:
cxhong 2017-10-20 13:15:18 -04:00 committed by GitHub
commit 2c2b3c7adb

View File

@ -1149,8 +1149,8 @@ sub get_functional_software_ids {
#
if (${ $response->{data} }{'/xyz/openbmc_project/software/functional'} ) {
my %func_data = %{ ${ $response->{data} }{'/xyz/openbmc_project/software/functional'} };
foreach my $fw_idx (keys %{ $func_data{endpoints} }) {
my $fw_id = (split(/\//, $func_data{endpoints}[$fw_idx]))[-1];
foreach ( @{$func_data{endpoints}} ) {
my $fw_id = (split '/', $_)[-1];
$functional{$fw_id} = 1;
}
}