summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-26 12:01:37 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-28 12:31:54 (GMT)
commitbbfb870a641df0013df87248bdb74788c199725d (patch)
treed89102c68e9f32ec8f95ff96e32d18d4e365ee34 /test
parentfd01499d9d9de5fb4c6f8cf975260db6ce353525 (diff)
downloadconnman-bbfb870a641df0013df87248bdb74788c199725d.zip
connman-bbfb870a641df0013df87248bdb74788c199725d.tar.gz
connman-bbfb870a641df0013df87248bdb74788c199725d.tar.bz2
list-services: Use GetServices() instead GetProperties()
GetProperties() does not return the services path anymore. Instead the GetServices() method should be used.
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-services7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/list-services b/test/list-services
index c403f85..be447b8 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():