diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-03-19 14:03:26 +0100 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-03-20 12:16:04 +0200 |
commit | 03f7aa7fc8dec052d63820aa6d71562feadf4725 (patch) | |
tree | 466210ab2ddbeefd772a2277ad7b171f0a25bb89 /test | |
parent | eb4a4ea46c7707f061d734b5f0ceb4ca7465fa47 (diff) | |
download | connman-03f7aa7fc8dec052d63820aa6d71562feadf4725.tar.gz connman-03f7aa7fc8dec052d63820aa6d71562feadf4725.tar.bz2 connman-03f7aa7fc8dec052d63820aa6d71562feadf4725.zip |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-services | 3 |
1 files changed, 2 insertions, 1 deletions
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", |