diff options
Diffstat (limited to 'test/remove-contexts')
-rwxr-xr-x | test/remove-contexts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/remove-contexts b/test/remove-contexts index 181c6fcd..53999136 100755 --- a/test/remove-contexts +++ b/test/remove-contexts @@ -15,14 +15,14 @@ for path in properties["Modems"]: properties = modem.GetProperties() - if "org.ofono.DataConnectionManager" not in properties["Interfaces"]: + if "org.ofono.ConnectionManager" not in properties["Interfaces"]: continue - connmgr = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.DataConnectionManager') + connman = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.ConnectionManager') - properties = connmgr.GetProperties() + contexts = connman.GetContexts() - for path in properties["PrimaryContexts"]: - connmgr.RemoveContext(path) + for path, properties in contexts: + connman.RemoveContext(path) print"Removed: [ %s ]" % (path) |