Use correct object name for device element
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 14:09:08 +0000 (15:09 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 14:09:08 +0000 (15:09 +0100)
test/list-devices

index 66af8bd37888514e5bea6c40a899cfe2bfae5b93..691a6fbe482c5fc8719b67f7b614f76e939adaca 100755 (executable)
@@ -10,10 +10,10 @@ manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
 properties = manager.GetProperties()
 
 for path in properties["Devices"]:
-       element = dbus.Interface(bus.get_object("org.moblin.connman", path),
+       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
                                                "org.moblin.connman.Device")
 
-       properties = element.GetProperties()
+       properties = device.GetProperties()
 
        print "[ %s ]" % (path)