summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-08-27 08:13:37 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-09-08 18:49:51 +0000
commite602709d4b95895a72d77f2cda1259c2ff9b8b1b (patch)
tree9e611532486e1a5e61341c4cef82d1641365492d /ipmid.cpp
parent62736ecab919357d85d8a578bd0df33d5038e578 (diff)
downloadphosphor-host-ipmid-e602709d4b95895a72d77f2cda1259c2ff9b8b1b.tar.gz
phosphor-host-ipmid-e602709d4b95895a72d77f2cda1259c2ff9b8b1b.zip
settings: handle multiple objects/interfaces
Handle the fact that a settings object can now implement multiple interfaces, and also the fact that multiple settings objects can implement the same interface. Change-Id: Icf55b08fe2d355a10f7007489dfddb128e05d90e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index 6e24bce..f6ab2fd 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -308,7 +308,7 @@ void cache_restricted_mode()
using namespace internal::cache;
sdbusplus::bus::bus dbus(ipmid_get_sd_bus_connection());
const auto& restrictionModeSetting =
- objects->map.at(restrictionModeIntf);
+ objects->map.at(restrictionModeIntf).front();
auto method = dbus.new_method_call(
objects->service(restrictionModeSetting,
restrictionModeIntf).c_str(),
@@ -596,7 +596,8 @@ int main(int argc, char *argv[])
sdbusplus::bus::match_t restrictedModeMatch(
dbus,
sdbusRule::propertiesChanged(
- objects->map.at(restrictionModeIntf), restrictionModeIntf),
+ objects->map.at(restrictionModeIntf).front(),
+ restrictionModeIntf),
handle_restricted_mode_change);
for (;;) {
OpenPOWER on IntegriCloud