summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2014-03-03 14:28:51 +0100
committerJiří Klimeš <jklimes@redhat.com>2014-03-03 14:28:51 +0100
commitf24eee5ee30dfde5282c7b074e0d5252640322e4 (patch)
treeecc98b7982c3cb98c204d86eb770c3eb267b706a /examples
parent296d7f6ec719ffc3baff72c36090318c54316974 (diff)
downloadNetworkManager-f24eee5ee30dfde5282c7b074e0d5252640322e4.tar.gz
examples: also print type of active connections
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/dbus/get-active-connection-uuids.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/dbus/get-active-connection-uuids.py b/examples/python/dbus/get-active-connection-uuids.py
index 9eefac20b2..6fe93d05da 100755
--- a/examples/python/dbus/get-active-connection-uuids.py
+++ b/examples/python/dbus/get-active-connection-uuids.py
@@ -49,7 +49,7 @@ for a in active:
c_proxy = bus.get_object("org.freedesktop.NetworkManager", connection_path)
connection = dbus.Interface(c_proxy, "org.freedesktop.NetworkManager.Settings.Connection")
settings = connection.GetSettings()
- print "%s (%s)" % (settings['connection']['id'], uuid)
+ print "%s (%s) - %s" % (settings['connection']['id'], uuid, settings['connection']['type'])
if len(active) == 0:
print "No active connections"