From 03f7aa7fc8dec052d63820aa6d71562feadf4725 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 19 Mar 2012 14:03:26 +0100 Subject: list-services: Print only identifier instead of path test-connman services also reports the identifier only. This makes copy&paste with the mouse a bit simpler. --- test/list-services | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/list-services b/test/list-services index be447b8d..def1c07a 100755 --- a/test/list-services +++ b/test/list-services @@ -31,7 +31,8 @@ manager = dbus.Interface(bus.get_object("net.connman", "/"), for path, properties in manager.GetServices(): service = dbus.Interface(bus.get_object("net.connman", path), "net.connman.Service") - print "[ %s ]" % (path) + identifier = path[path.rfind("/") + 1:] + print "[ %s ]" % (identifier) for key in properties.keys(): if key in ["IPv4", "IPv4.Configuration", -- cgit v1.2.1