examples: generate UUID in add-wifi-eap-connection.py

so that it can be run multiple times.
This commit is contained in:
Jiří Klimeš
2015-09-17 14:49:04 +02:00
parent a25bbde641
commit 8e3ae81566

View File

@@ -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({