Skip to content

Commit 3b73fab

Browse files
committed
use _vblk_info in the cryptsetup module
Signed-off-by: Zen <[email protected]>
1 parent 3e79dd4 commit 3b73fab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ugrd/crypto/cryptsetup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.6.0'
2+
__version__ = '2.6.1'
33

44
from zenlib.util import contains
55

@@ -133,9 +133,9 @@ def _validate_cryptsetup_device(self, mapped_name) -> None:
133133
blkid information, and cryptsetup information.
134134
Uses `cryptsetup luksDump` to check that the device is a LUKS device.
135135
"""
136-
for _dm_info in self['_dm_info'].values():
137-
if _dm_info['name'] == mapped_name:
138-
dm_info = _dm_info # Get the device mapper information
136+
for device_info in self['_vblk_info'].values():
137+
if device_info['name'] == mapped_name:
138+
dm_info = device_info # Get the device mapper information
139139
break
140140
else:
141141
raise ValueError("No device mapper information found for: %s" % mapped_name)

0 commit comments

Comments
 (0)