From 8e953359f867846edfd97273735ee0021f36c5d1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 23 Feb 2022 08:44:41 -0500 Subject: [PATCH] Common: Use Enum.auto() for CredentialComponentType values --- .../common_consts/credential_component_type.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey/common/common_consts/credential_component_type.py b/monkey/common/common_consts/credential_component_type.py index 76326e50e..25bd3a168 100644 --- a/monkey/common/common_consts/credential_component_type.py +++ b/monkey/common/common_consts/credential_component_type.py @@ -1,9 +1,9 @@ -from enum import Enum +from enum import Enum, auto class CredentialComponentType(Enum): - USERNAME = "username" - PASSWORD = "password" - NT_HASH = "nt_hash" - LM_HASH = "lm_hash" - SSH_KEYPAIR = "ssh_keypair" + USERNAME = auto() + PASSWORD = auto() + NT_HASH = auto() + LM_HASH = auto() + SSH_KEYPAIR = auto()