Fixed issue with displaying empty triggers
It was not possible to display empty triggers due to one of the property
handlers returning error. This fixes handlers and proper value is
returned instead.
Tested:
- All unit tests are passing.
- Can introspect empty triggers
- Empty triggers are correctly listed in redfish
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I1ce9a9a43faac5446911f0e44c638b4ca91adb82
diff --git a/src/trigger.hpp b/src/trigger.hpp
index b7ef182..6bd2556 100644
--- a/src/trigger.hpp
+++ b/src/trigger.hpp
@@ -45,6 +45,10 @@
bool storeConfiguration() const;
private:
+ std::vector<LabeledSensorInfo> getLabeledSensorInfo() const;
+ std::vector<LabeledThresholdParam> getLabeledThresholds() const;
+ bool isDiscreate() const;
+
std::string id;
std::string name;
std::vector<TriggerAction> triggerActions;