diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2019-01-29 15:36:00 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2019-02-13 14:31:44 -0600 |
commit | 18c9103015fd4218146cd75b9e99bb745d97cf76 (patch) | |
tree | 4706b4bea9f0ecaca2ba31579ef4e57709766c1f /control/templates/defs.mako | |
parent | baea6c3fde9866a06b219b7c852833a32b23786e (diff) | |
download | phosphor-fan-presence-18c9103015fd4218146cd75b9e99bb745d97cf76.tar.gz phosphor-fan-presence-18c9103015fd4218146cd75b9e99bb745d97cf76.zip |
Update parser for properties on zone objects
Create a service attribute that can be optionally defined on a group
denoting what service is hosting the group members. Initially, defining
a service name generates the group member(s) to be zone objects only.
This service attribute will be enhanced to specifically note what
service provides the group members and allow for a better trigger for
properties on zone objects instead of generating a blank signal match.
Tested:
Blank signal match generated for group members in events used
Change-Id: I483fcf6a5e210e5d70bc9d5c4c0dee15524b01b9
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/templates/defs.mako')
-rw-r--r-- | control/templates/defs.mako | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/control/templates/defs.mako b/control/templates/defs.mako index 2fd3856..bcc0c5b 100644 --- a/control/templates/defs.mako +++ b/control/templates/defs.mako @@ -65,6 +65,8 @@ TimerConf{ std::vector<Signal>{ %for s in event['signals']: Signal{ + %if ('match' in s) and \ + (s['match'] is not None): match::${s['match']}( %for i, mp in enumerate(s['mparams']): %if (i+1) != len(s['mparams']): @@ -74,6 +76,9 @@ std::vector<Signal>{ %endif %endfor ), + %else: + "", + %endif make_handler(\ ${indent(genHandler(sig=s), 3)}\ ) |