From ac460fc2e29fa159f6da8576c5a38cbe476ea772 Mon Sep 17 00:00:00 2001 From: knguyen100000010 Date: Fri, 15 Nov 2024 06:18:08 -0500 Subject: [PATCH] Fix termination policies not matching from backend API --- .../deploy_board/webapp/helpers/autoscaling_groups_helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy-board/deploy_board/webapp/helpers/autoscaling_groups_helper.py b/deploy-board/deploy_board/webapp/helpers/autoscaling_groups_helper.py index 72ae8689e8..0525ab92b3 100644 --- a/deploy-board/deploy_board/webapp/helpers/autoscaling_groups_helper.py +++ b/deploy-board/deploy_board/webapp/helpers/autoscaling_groups_helper.py @@ -19,7 +19,8 @@ rodimus_client = RodimusClient() -TerminationPolicy = ["Default", "OldestInstance", "NewestInstance", "ClosestToNextInstanceHour"] +TerminationPolicy = ['DEFAULT', 'OLDEST_INSTANCE', 'NEWEST_INSTANCE', 'CLOSEST_TO_NEXT_INSTANCE_HOUR', 'ALLOCATION_STRATEGY', 'OLDEST_LAUNCH_TEMPLATE'] + Comparator = [{"value": "GreaterThanOrEqualToThreshold", "symbol": "≥"}, {"value": "GreaterThanThreshold", "symbol": ">"},