diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-09-17 14:49:04 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-09-17 14:49:04 +0200 |
commit | 8e3ae8156662f128111d0e42c74e52d9116d9dc2 (patch) | |
tree | 7a645b693305acf27cf50514ef3e37b89e215c6d /examples | |
parent | a25bbde641a507de38f6e56d0ea435e50e45e690 (diff) | |
download | NetworkManager-8e3ae8156662f128111d0e42c74e52d9116d9dc2.tar.gz |
examples: generate UUID in add-wifi-eap-connection.py
so that it can be run multiple times.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/python/dbus/add-wifi-eap-connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/dbus/add-wifi-eap-connection.py b/examples/python/dbus/add-wifi-eap-connection.py index ff3908217d..4085ac31a3 100755 --- a/examples/python/dbus/add-wifi-eap-connection.py +++ b/examples/python/dbus/add-wifi-eap-connection.py @@ -17,14 +17,14 @@ # Copyright (C) 2011 Red Hat, Inc. # -import dbus +import dbus, uuid def path_to_value(path): return dbus.ByteArray("file://" + path + "\0") s_con = dbus.Dictionary({ 'type': '802-11-wireless', - 'uuid': '7371bb78-c1f7-42a3-a9db-5b9566e8ca07', + 'uuid': str(uuid.uuid4()), 'id': 'My Wifi'}) s_wifi = dbus.Dictionary({ |