Skip to content

Commit 7e75327

Browse files
committed
fix(ecs): fix timeout behavior in ECS monitoring commands
This fixes an issue where the command would not properly exit the display upon timeout. Once properly exiting on timeout, Colorama would fall into an infinite loop due to its autoreset behavior. Changes: - Set colorama autoreset=False to prevent infinite loop - Timeout exit already handled by display strategy pattern
1 parent b0d44a2 commit 7e75327

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "``ecs``",
4+
"description": "Fixes timeout behavior of the ``ecs monitor-express-gateway-service`` command."
5+
}

awscli/customizations/ecs/expressgateway/color_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ColorUtils:
2424

2525
def __init__(self):
2626
# Initialize colorama
27-
init(autoreset=True, strip=False)
27+
init(autoreset=False, strip=False)
2828

2929
def make_green(self, text, use_color=True):
3030
if not use_color:

0 commit comments

Comments
 (0)