diff options
Diffstat (limited to 'test/remove-contexts')
-rwxr-xr-x | test/remove-contexts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/remove-contexts b/test/remove-contexts index 53999136..a600d0bf 100755 --- a/test/remove-contexts +++ b/test/remove-contexts @@ -7,14 +7,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object('org.ofono', '/'), 'org.ofono.Manager') -properties = manager.GetProperties() - -for path in properties["Modems"]: - modem = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.Modem') - - properties = modem.GetProperties() +modems = manager.GetModems() +for path, properties in modems: if "org.ofono.ConnectionManager" not in properties["Interfaces"]: continue |