summaryrefslogtreecommitdiffstats
path: root/test/scan-for-operators
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-09 14:37:37 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-09 14:38:14 -0500
commitba6db3af42efe2bcd85df536d1290487f9243d25 (patch)
treeea8b18188afaebe8c53a0b8811ef84886ba2abec /test/scan-for-operators
parentb24439ed7b21bafa8d8226d43cec92ecdcb79cc8 (diff)
downloadofono-ba6db3af42efe2bcd85df536d1290487f9243d25.tar.bz2
test: Update to the new Manager api
Diffstat (limited to 'test/scan-for-operators')
-rwxr-xr-xtest/scan-for-operators6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scan-for-operators b/test/scan-for-operators
index 3206f8f0..285f1111 100755
--- a/test/scan-for-operators
+++ b/test/scan-for-operators
@@ -10,8 +10,8 @@ if len(sys.argv) == 2:
else:
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
- properties = manager.GetProperties()
- path = properties["Modems"][0]
+ modems = manager.GetModems()
+ path = modems[0][0]
print "Propose scanning for modem %s..." % path
netreg = dbus.Interface(bus.get_object('org.ofono', path),
@@ -33,6 +33,6 @@ for entry in operators:
else:
val = str(properties[key])
print " %s = %s" % (key, val)
-
+
print