test: Fix simple-agent so it registers the right path
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Wed, 2 Jan 2013 13:57:34 +0000 (15:57 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 3 Jan 2013 08:40:57 +0000 (10:40 +0200)
test/simple-agent

index ebb44c57b47fd651c4e3150a9817b9710d7f7b8e..2487b7bb0f3e04bb3f486220cb57d2dbd6a94c20 100755 (executable)
@@ -309,8 +309,8 @@ if __name__ == '__main__':
 
        vpn_manager = dbus.Interface(bus.get_object('net.connman.vpn', "/"),
                                        'net.connman.vpn.Manager')
-       path = "/test/vpn_agent"
-       vpn_object = VpnAgent(bus, path)
+       vpn_path = "/test/vpn_agent"
+       vpn_object = VpnAgent(bus, vpn_path)
 
        if len(sys.argv) >= 2:
                for arg in sys.argv[1:]:
@@ -340,9 +340,9 @@ if __name__ == '__main__':
        except:
                print "Cannot register connman agent."
 
-       vpn_manager.RegisterAgent(path)
+       vpn_manager.RegisterAgent(vpn_path)
 
-        bus.watch_name_owner('net.connman.vpn', vpnNameOwnerChanged)
+       bus.watch_name_owner('net.connman.vpn', vpnNameOwnerChanged)
 
        mainloop = gobject.MainLoop()
        mainloop.run()