summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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 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():