summaryrefslogtreecommitdiffstats
path: root/module/obmc/wsgi/apps/rest_dbus.py
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-04-04 22:28:42 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-04-04 23:03:49 -0400
commitaeb995da693765897055c911ba2fe211faad77a2 (patch)
tree41449dd7a1536ad7800fffe293feae4193744d76 /module/obmc/wsgi/apps/rest_dbus.py
parent249d13270e76bda1bcf025ee1573b494577be767 (diff)
downloadphosphor-rest-server-aeb995da693765897055c911ba2fe211faad77a2.tar.gz
phosphor-rest-server-aeb995da693765897055c911ba2fe211faad77a2.zip
Remove use of deprecated ListMatch
This class was broken with pyphosphor aea38c65. Drop use of the class altogether and just use a lambda. Change-Id: I6f36487c1d6fe2003aa007c2a174fe97abf0267a Tested: Enumerated HTTP root and verified content Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'module/obmc/wsgi/apps/rest_dbus.py')
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py
index b1e2dcf..6f800e9 100644
--- a/module/obmc/wsgi/apps/rest_dbus.py
+++ b/module/obmc/wsgi/apps/rest_dbus.py
@@ -422,7 +422,7 @@ class MethodHandler(RouteHandler):
data = iface.Introspect()
parser = IntrospectionNodeParser(
ElementTree.fromstring(data),
- intf_match=obmc.utils.misc.ListMatch(interfaces))
+ intf_match=lambda x: x in interfaces)
for x, y in parser.get_interfaces().items():
m = self.find_method_in_interface(
method, obj, x, y.get('method'))
OpenPOWER on IntegriCloud