Use StrEnum for EncryptionType

This commit is contained in:
codefiles 2026-04-16 19:11:46 -04:00
parent 0d7ee53cfe
commit 9312364efb
1 changed files with 5 additions and 5 deletions

View File

@ -1400,11 +1400,11 @@ class DeviceModification:
}
class EncryptionType(Enum):
NO_ENCRYPTION = 'no_encryption'
LUKS = 'luks'
LVM_ON_LUKS = 'lvm_on_luks'
LUKS_ON_LVM = 'luks_on_lvm'
class EncryptionType(StrEnum):
NO_ENCRYPTION = auto()
LUKS = auto()
LVM_ON_LUKS = auto()
LUKS_ON_LVM = auto()
@classmethod
def _encryption_type_mapper(cls) -> dict[str, Self]: