From ba6db3af42efe2bcd85df536d1290487f9243d25 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 9 Sep 2010 14:37:37 -0500 Subject: test: Update to the new Manager api --- test/scan-for-operators | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/scan-for-operators') 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 -- cgit v1.2.3