requester: Correct the type when getting EID property
Recently, phosphor-dbus-interface fixed the EID type to byte,
so we should correct the type when getting EID property to uint8_t
to avoid bad variant access.
Change-Id: Idb7f6ba8196284ed5da97edcd5da205241374246
Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
diff --git a/requester/mctp_endpoint_discovery.cpp b/requester/mctp_endpoint_discovery.cpp
index 5f3451a..c766a70 100644
--- a/requester/mctp_endpoint_discovery.cpp
+++ b/requester/mctp_endpoint_discovery.cpp
@@ -82,7 +82,7 @@
if (properties.contains("EID") &&
properties.contains("SupportedMessageTypes"))
{
- auto eid = std::get<size_t>(properties.at("EID"));
+ auto eid = std::get<mctp_eid_t>(properties.at("EID"));
auto types = std::get<std::vector<uint8_t>>(
properties.at("SupportedMessageTypes"));
if (std::find(types.begin(), types.end(), mctpTypePLDM) !=