Change all default_bus back to new_system bus
new_default now returns a reference to a single bus,
phosphor-pid-control uses multiple busses so we do not
want that. This was the way it was implemented prior to
https://github.com/openbmc/sdbusplus/commit/8ca6025eed193c252149b2908c3d5e37b00b0107
Tested-by: swampd ran normally
These errors go away:
Jan 28 18:28:45 swampd[1760]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
Jan 28 18:28:45 swampd[1760]: what(): sd_bus_request_name: org.freedesktop.DBus.Error.InconsistentMessage: Bad message
Change-Id: I708cd5e6c45509f27d4fe783c0b0cfb52ff10336
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/ipmi/manualcmds.cpp b/ipmi/manualcmds.cpp
index dd0c0e6..73eec20 100644
--- a/ipmi/manualcmds.cpp
+++ b/ipmi/manualcmds.cpp
@@ -77,7 +77,7 @@
{
std::string path = getControlPath(zoneId);
- auto propertyReadBus = sdbusplus::bus::new_default();
+ auto propertyReadBus = sdbusplus::bus::new_system();
auto pimMsg = propertyReadBus.new_method_call(busName, path.c_str(),
propertiesintf, "GetAll");
pimMsg.append(intf);
@@ -182,7 +182,7 @@
bool setValue = static_cast<bool>(request->value);
Value v{setValue};
- auto PropertyWriteBus = sdbusplus::bus::new_default();
+ auto PropertyWriteBus = sdbusplus::bus::new_system();
std::string path = getControlPath(request->zone);