summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-26 13:01:37 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-28 13:31:54 +0100
commitbbfb870a641df0013df87248bdb74788c199725d (patch)
treed89102c68e9f32ec8f95ff96e32d18d4e365ee34
parentfd01499d9d9de5fb4c6f8cf975260db6ce353525 (diff)
downloadconnman-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-xtest/list-services7
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():