Common: Use Enum.auto() for CredentialComponentType values

This commit is contained in:
Mike Salvatore 2022-02-23 08:44:41 -05:00
parent 7c9c4cf9fb
commit 8e953359f8
1 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
from enum import Enum from enum import Enum, auto
class CredentialComponentType(Enum): class CredentialComponentType(Enum):
USERNAME = "username" USERNAME = auto()
PASSWORD = "password" PASSWORD = auto()
NT_HASH = "nt_hash" NT_HASH = auto()
LM_HASH = "lm_hash" LM_HASH = auto()
SSH_KEYPAIR = "ssh_keypair" SSH_KEYPAIR = auto()