summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-08-10 16:59:43 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-08-14 11:23:41 -0500
commitbc65160987751be9cc0070284395ec1d752de0f1 (patch)
tree5954b09da8a0d308884b116ecf7e27a75bfee3ec /control/zone.hpp
parent9af190cd94e68b378da4e25accb5c03258a2fb31 (diff)
downloadphosphor-fan-presence-bc65160987751be9cc0070284395ec1d752de0f1.tar.gz
phosphor-fan-presence-bc65160987751be9cc0070284395ec1d752de0f1.zip
Handle any missing properties for actions
Update getting a property value from the zone's cache to throw an exception when not found. Handle these exceptions appropriately for each action where it gets each property value of a group. Change-Id: Icbc0b04f492d3680de77dbe3f27cabf7504ce6b4 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 32707cb..a56b1c7 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -114,7 +114,7 @@ class Zone
const std::string& property)
{
return sdbusplus::message::variant_ns::get<T>(
- _properties[object][interface][property]);
+ _properties.at(object).at(interface).at(property));
};
/**
OpenPOWER on IntegriCloud