From aeb995da693765897055c911ba2fe211faad77a2 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 4 Apr 2018 22:28:42 -0400 Subject: 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 --- module/obmc/wsgi/apps/rest_dbus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/obmc/wsgi') 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')) -- cgit v1.2.1