server: change optional argument to a keyword
Change-Id: I5b6b6a0d80eca208362e623506b49d8920cebd5f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/obmc/mapper/server.py b/obmc/mapper/server.py
index f8286ce..6af544e 100644
--- a/obmc/mapper/server.py
+++ b/obmc/mapper/server.py
@@ -35,7 +35,9 @@
"path or object not found: %s" % path)
-def find_dbus_interfaces(conn, service, path, match):
+def find_dbus_interfaces(conn, service, path, **kw):
+ iface_match = kw.pop('iface_match', bool)
+
class _FindInterfaces(object):
def __init__(self):
self.results = {}
@@ -102,7 +104,7 @@
@staticmethod
def _match(iface):
return iface == dbus.BUS_DAEMON_IFACE + '.ObjectManager' \
- or match(iface)
+ or iface_match(iface)
def _find_interfaces(self, path):
path_elements = self._to_path_elements(path)
@@ -368,7 +370,8 @@
for owned_name, o in owners:
self.add_items(
o,
- find_dbus_interfaces(self.bus, o, '/', self.intf_match))
+ find_dbus_interfaces(
+ self.bus, o, '/', iface_match=self.intf_match))
self.bus_map[o] = owned_name
if self.discovery_pending():