Skip to content

Commit

Permalink
fix Compilation issue (openbmc#56)
Browse files Browse the repository at this point in the history
Co-authored-by: nkotania <[email protected]>
  • Loading branch information
2 people authored and rfrandse committed Feb 16, 2023
1 parent 488f4f3 commit 2e19d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ethernet_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,15 @@ ServerList EthernetInterface::staticNameServers(ServerList value)
void EthernetInterface::loadNTPServers(const config::Parser& config)
{
std::string timeSyncMethod{};
auto method = bus.new_method_call("xyz.openbmc_project.Settings",
auto method = bus.get().new_method_call("xyz.openbmc_project.Settings",
"/xyz/openbmc_project/time/sync_method",
PROPERTY_INTERFACE, METHOD_GET);

method.append("xyz.openbmc_project.Time.Synchronization", "TimeSyncMethod");

try
{
auto reply = bus.call(method);
auto reply = bus.get().call(method);
std::variant<std::string> response;
reply.read(response);
timeSyncMethod = std::get<std::string>(response);
Expand Down

0 comments on commit 2e19d0b

Please sign in to comment.