diff options
author | Vojtech Trefny <vtrefny@redhat.com> | 2021-06-02 17:17:40 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-10-07 12:42:44 -0500 |
commit | 61bd5e50232d72345b5d55ece237c05025a731ab (patch) | |
tree | 069938caf9be83ed5e17a836bf3c0c0f75cc3f50 /daemons | |
parent | 5ac4b662df525039eda6a5fc461da60c6ea42c2a (diff) | |
download | lvm2-61bd5e50232d72345b5d55ece237c05025a731ab.tar.gz |
lvmdbusd: Use ID_FS_TYPE UDev property in udevwatch
'.ID_FS_TYPE_NEW' is a custom property added by an LVM UDev rule
which is now being removed and 'ID_FS_TYPE' has the same value.
Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lvmdbusd/udevwatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/lvmdbusd/udevwatch.py b/daemons/lvmdbusd/udevwatch.py index b53b18003..f9b3e4ad1 100644 --- a/daemons/lvmdbusd/udevwatch.py +++ b/daemons/lvmdbusd/udevwatch.py @@ -52,8 +52,8 @@ def filter_event(action, device): # when appropriate. refresh = False - if '.ID_FS_TYPE_NEW' in device: - fs_type_new = device['.ID_FS_TYPE_NEW'] + if 'ID_FS_TYPE' in device: + fs_type_new = device['ID_FS_TYPE'] if 'LVM' in fs_type_new: refresh = True |