mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-01 13:55:36 +00:00
examples: remove unused code from "examples/python/dbus/vpn.py"
lgtm.com says "The value assigned to local variable all_connections is never used". Just drop the entire statement. It's not right there.
This commit is contained in:
parent
8ad448444a
commit
64331d6085
|
@ -56,7 +56,6 @@ def get_active_connection_path(uuid):
|
|||
proxy = bus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager')
|
||||
iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.DBus.Properties')
|
||||
active_connections = iface.Get('org.freedesktop.NetworkManager', 'ActiveConnections')
|
||||
all_connections = get_connections()
|
||||
|
||||
for a in active_connections:
|
||||
proxy = bus.get_object('org.freedesktop.NetworkManager', a)
|
||||
|
|
Loading…
Reference in a new issue