From f7a6a462e357726fa20aa487d838a4890100d46f Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Wed, 1 Nov 2017 10:51:19 -0500 Subject: Add resolve callout example Change-Id: Ie80bff38947a79cc686eaf9db9c80453d28a4fb6 Signed-off-by: Matt Spinler --- src/example/example.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/example/example.yaml b/src/example/example.yaml index 264a71e..16cdce8 100644 --- a/src/example/example.yaml +++ b/src/example/example.yaml @@ -114,6 +114,22 @@ - value: replace type: string +- name: example resolve callouts callback + description: > + 'The resolve callout callback resolves all error log entries that + are associated with the inventory path specified by setting the + Resolved property in the entries to true. + + A use case could be to watch the Present property on the inventory + item and resolve all errors for it when a new one is plugged in and + the property changes to true.' + + class: callback + callback: resolve callout + paths: example path group + properties: example property group + callout: /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0 + - name: example callback group description: > 'Callbacks groups are simply named collections of other callbacks. -- cgit v1.2.1