Skip to content

Commit

Permalink
remove useless env
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed May 13, 2024
1 parent b053aed commit e40ce4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions agenta-backend/agenta_backend/services/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions agenta-backend/agenta_backend/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e40ce4a

Please sign in to comment.