From 6ebac252b0d10f34714afeaaaaca6c2f2ad9759e Mon Sep 17 00:00:00 2001 From: zhenyus Date: Sun, 3 Aug 2025 03:28:06 +0800 Subject: [PATCH] refactor: change DevOpsReconcileOperationType to inherit from str and Enum Updated the DevOpsReconcileOperationType class to inherit from both str and Enum, enhancing its usability as a string enumeration in the application. Signed-off-by: zhenyus --- apps/devops/app/common/models/deployment/deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/devops/app/common/models/deployment/deployment.py b/apps/devops/app/common/models/deployment/deployment.py index e217eae..360d890 100644 --- a/apps/devops/app/common/models/deployment/deployment.py +++ b/apps/devops/app/common/models/deployment/deployment.py @@ -71,7 +71,7 @@ class CheckApplicationLogsResponse(BaseModel): limit: int logs: list[str] -class DevOpsReconcileOperationType(Enum): +class DevOpsReconcileOperationType(str, Enum): START = "start" TERMINATE = "terminate" RESTART = "restart"