Fix hardcoded string in propertyChangedTo
Prior to this change this template will not build with types
other than strings.
Add an example that tests this.
Change-Id: I71e5c4136e7e4fd52fea3e8e027e42634011d630
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml
index 22f7c80..047462d 100644
--- a/example/events.d/match2.yaml
+++ b/example/events.d/match2.yaml
@@ -2,7 +2,7 @@
An example inventory match rule.
events:
- - name: Example Match(2)
+ - name: Example Match
description: >
Destroys the /deleteme1 and /deleteme2 objects
When the value of ExampleProperty2 on
@@ -26,5 +26,27 @@
- /deleteme1
- /deleteme2
+ - name: Example Match
+ description: >
+ Destroys the /deleteme3 object when the value of
+ ExampleProperty3 on /testing/trigger3
+ changes to 10.
+ type: match
+ signatures:
+ - type: signal
+ path: /testing/trigger3
+ interface: org.freedesktop.DBus.Properties
+ member: PropertiesChanged
+ filters:
+ - name: propertyChangedTo
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty3
+ value:
+ value: 10
+ type: int64
+ actions:
+ - name: destroyObjects
+ paths:
+ - /deleteme3
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4