Skip to content

Commit 9312364

Browse files
committed
Use StrEnum for EncryptionType
1 parent 0d7ee53 commit 9312364

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

archinstall/lib/models/device.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,11 +1400,11 @@ def json(self) -> _DeviceModificationSerialization:
14001400
}
14011401

14021402

1403-
class EncryptionType(Enum):
1404-
NO_ENCRYPTION = 'no_encryption'
1405-
LUKS = 'luks'
1406-
LVM_ON_LUKS = 'lvm_on_luks'
1407-
LUKS_ON_LVM = 'luks_on_lvm'
1403+
class EncryptionType(StrEnum):
1404+
NO_ENCRYPTION = auto()
1405+
LUKS = auto()
1406+
LVM_ON_LUKS = auto()
1407+
LUKS_ON_LVM = auto()
14081408

14091409
@classmethod
14101410
def _encryption_type_mapper(cls) -> dict[str, Self]:

0 commit comments

Comments
 (0)