diff options
| author | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-03 09:24:48 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-03 09:24:48 -0500 |
| commit | a8e752fb8d9a8b38fa2d4133b78db9711dbe032f (patch) | |
| tree | e7c845ec0530ac0d52ed0276d810fabbd0fdbacf | |
| parent | e318ec2b30c1f623127fef03a2dd7acd87a3b162 (diff) | |
| download | phosphor-objmgr-a8e752fb8d9a8b38fa2d4133b78db9711dbe032f.tar.gz phosphor-objmgr-a8e752fb8d9a8b38fa2d4133b78db9711dbe032f.zip | |
Rename TagListMatch to ListMatch
This match functor doesn't have anything to do with 'tags'.
| -rw-r--r-- | OpenBMCMapper.py | 10 | ||||
| -rw-r--r-- | phosphor-mapper | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenBMCMapper.py b/OpenBMCMapper.py index 3b6fe00..c1d2c78 100644 --- a/OpenBMCMapper.py +++ b/OpenBMCMapper.py @@ -48,12 +48,12 @@ class Path: def org_dot_openbmc_match(name): return 'org.openbmc' in name -class TagListMatch(object): - def __init__(self, tag_list): - self.tag_list = tag_list +class ListMatch(object): + def __init__(self, l): + self.l = l - def __call__(self, tag): - return tag in self.tag_list + def __call__(self, match): + return match in self.l class IntrospectionNodeParser: def __init__(self, data, tag_match = bool, intf_match = bool): diff --git a/phosphor-mapper b/phosphor-mapper index fda70c7..1a63317 100644 --- a/phosphor-mapper +++ b/phosphor-mapper @@ -174,7 +174,7 @@ class ObjectMapper(dbus.service.Object): self.bus = bus self.name_match = name_match self.intf_match = intf_match - self.tag_match = OpenBMCMapper.TagListMatch(['children', 'interface']) + self.tag_match = OpenBMCMapper.ListMatch(['children', 'interface']) self.discovery_done = False |

