mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
examples: generate UUID in add-wifi-eap-connection.py
so that it can be run multiple times.
This commit is contained in:
parent
a25bbde641
commit
8e3ae81566
1 changed files with 2 additions and 2 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue