Skip to content

Commit

Permalink
Merge pull request ibm-openbmc#415 from souvik1914581/sr_fixProcessAmm
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnySrivastava1984 authored Oct 14, 2024
2 parents b857836 + c2e84c0 commit 828a60e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bios_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ void IbmBiosHandler::processActiveMemoryMirror()
constants::pimServiceName, constants::systemVpdInvPath,
constants::utilInf, constants::kwdAMM);

// TODO: l_kwdValueVariant should be checked for binary vector rather than a
// string
if (auto pVal = std::get_if<std::string>(&l_kwdValueVariant))
if (auto pVal = std::get_if<types::BinaryVector>(&l_kwdValueVariant))
{
auto l_ammValInVpd = *pVal;

Expand All @@ -363,7 +361,7 @@ void IbmBiosHandler::processActiveMemoryMirror()
}
else
{
saveAmmToBios(l_ammValInVpd);
saveAmmToBios(std::to_string(l_ammValInVpd.at(0)));
}
return;
}
Expand Down

0 comments on commit 828a60e

Please sign in to comment.