From e40ce4abf6e8cdece9b61d88703e2ec7b80eb2eb Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 13 May 2024 20:06:40 +0200 Subject: [PATCH] remove useless env --- agenta-backend/agenta_backend/services/app_manager.py | 3 +-- agenta-backend/agenta_backend/utils/common.py | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/agenta-backend/agenta_backend/services/app_manager.py b/agenta-backend/agenta_backend/services/app_manager.py index a0c1aaf1bb..8f2a271b35 100644 --- a/agenta-backend/agenta_backend/services/app_manager.py +++ b/agenta-backend/agenta_backend/services/app_manager.py @@ -152,8 +152,7 @@ async def update_variant_image( await deployment_manager.stop_and_delete_service(deployment) await db_manager.remove_deployment(deployment) - if isOssEE(): - await deployment_manager.remove_image(app_variant_db.base.image) + await deployment_manager.remove_image(app_variant_db.base.image) await db_manager.remove_image(app_variant_db.base.image) # Create a new image instance diff --git a/agenta-backend/agenta_backend/utils/common.py b/agenta-backend/agenta_backend/utils/common.py index f9b40127b9..4d42c384c7 100644 --- a/agenta-backend/agenta_backend/utils/common.py +++ b/agenta-backend/agenta_backend/utils/common.py @@ -63,10 +63,6 @@ def isEE(): return os.environ["FEATURE_FLAG"] == "ee" -def isOssEE(): - return os.environ["FEATURE_FLAG"] in ["oss", "ee"] - - def isCloudProd(): return os.environ["FEATURE_FLAG"] == "cloud"