diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-26 13:01:37 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-28 13:31:54 +0100 |
commit | bbfb870a641df0013df87248bdb74788c199725d (patch) | |
tree | d89102c68e9f32ec8f95ff96e32d18d4e365ee34 | |
parent | fd01499d9d9de5fb4c6f8cf975260db6ce353525 (diff) | |
download | connman-bbfb870a641df0013df87248bdb74788c199725d.tar.gz connman-bbfb870a641df0013df87248bdb74788c199725d.tar.bz2 connman-bbfb870a641df0013df87248bdb74788c199725d.zip |
list-services: Use GetServices() instead GetProperties()
GetProperties() does not return the services path anymore. Instead
the GetServices() method should be used.
-rwxr-xr-x | test/list-services | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/list-services b/test/list-services index c403f858..be447b8d 100755 --- a/test/list-services +++ b/test/list-services @@ -28,14 +28,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("net.connman", "/"), "net.connman.Manager") -properties = manager.GetProperties() - -for path in properties["Services"]: +for path, properties in manager.GetServices(): service = dbus.Interface(bus.get_object("net.connman", path), "net.connman.Service") - - properties = service.GetProperties() - print "[ %s ]" % (path) for key in properties.keys(): |