diff options
| author | Dan Williams <dcbw@redhat.com> | 2010-11-23 16:28:25 -0600 |
|---|---|---|
| committer | Dan Williams <dcbw@redhat.com> | 2010-11-23 16:28:25 -0600 |
| commit | 40bbd4e2f2b221ca2894e0ad2026c0bf231479bd (patch) | |
| tree | 1a7f541d643c3fd7ce8ed4ae62fd4cb5d3ede27a /examples/python | |
| parent | 608783c5b773a30139158ef3b00c211dcc255ee8 (diff) | |
| download | NetworkManager-40bbd4e2f2b221ca2894e0ad2026c0bf231479bd.tar.gz | |
examples: fix querying active connections
Diffstat (limited to 'examples/python')
| -rw-r--r-- | examples/python/nm-state.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/nm-state.py b/examples/python/nm-state.py index fddd2da629..2bbdd2db4a 100644 --- a/examples/python/nm-state.py +++ b/examples/python/nm-state.py @@ -47,13 +47,13 @@ active = manager_prop_iface.Get("org.freedesktop.NetworkManager", "ActiveConnect for a in active: ac_proxy = bus.get_object("org.freedesktop.NetworkManager", a) prop_iface = dbus.Interface(ac_proxy, "org.freedesktop.DBus.Properties") - state = prop_iface.Get("org.freedesktop.NetworkManager.ActiveConnection", "State") + state = prop_iface.Get("org.freedesktop.NetworkManager.Connection.Active", "State") # Connections in NM are a collection of settings that describe everything # needed to connect to a specific network. Lets get those details so we # can find the user-readable name of the connection. - con_path = prop_iface.Get("org.freedesktop.NetworkManager.ActiveConnection", "Connection") - con_service = prop_iface.Get("org.freedesktop.NetworkManager.ActiveConnection", "ServiceName") + con_path = prop_iface.Get("org.freedesktop.NetworkManager.Connection.Active", "Connection") + con_service = prop_iface.Get("org.freedesktop.NetworkManager.Connection.Active", "ServiceName") # ask the provider of the connection for its details service_proxy = bus.get_object(con_service, con_path) |
