1
0
Fork 0

Merge pull request #333 from yarda/udev_sort_properties

udev: explicitly sort udev properties
This commit is contained in:
Jaroslav Škarvada 2021-03-30 22:37:30 +02:00 committed by GitHub
commit 2b6f9ff415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ class DeviceMatcherUdev(device_matcher.DeviceMatcher):
except AttributeError:
items = device.items()
for key, val in list(items):
for key, val in sorted(list(items)):
properties += key + '=' + val + '\n'
return re.search(regex, properties, re.MULTILINE) is not None