diff options
author | Thomas Haller <thaller@redhat.com> | 2018-06-05 11:26:03 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-05 20:08:03 +0200 |
commit | 360f95239981a89ba324b706ac98ae0dbfe60404 (patch) | |
tree | 6351962f47749cc80e1f1a4dc14b9c4abb845933 /tools/test-networkmanager-service.py | |
parent | f3dddcff2aa81428988480b289b148e09cd623e3 (diff) | |
download | NetworkManager-360f95239981a89ba324b706ac98ae0dbfe60404.tar.gz |
clients/tests: test `nmcli con mod` command with different locale
Just to give it some variety. Also, note how the message from the
server cannot be translated. Which is the case with real NetworkManager
as well, and is a major usability issue.
Diffstat (limited to 'tools/test-networkmanager-service.py')
-rwxr-xr-x | tools/test-networkmanager-service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 19e0fdcc12..2e9dcdb296 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -109,7 +109,7 @@ class Util: if val.signature == 'au': return GLib.Variant('aau', [Util.variant_from_dbus(x) for x in val]) if val.signature == 'a{sv}': - return GLib.Variant('aa{sv}', [(str(k), Util.variant_from_dbus(v)) for k, v in val]) + return GLib.Variant('aa{sv}', [collections.OrderedDict([(str(k), Util.variant_from_dbus(v)) for k, v in addr.items()]) for addr in val]) if val.signature == '(ayuay)': return GLib.Variant('a(ayuay)', [Util.variant_from_dbus(x) for x in val]) if val.signature == '(ayuayu)': |