From ffc2f4ca059eeaeebeb7c82c613bbc741a6ba385 Mon Sep 17 00:00:00 2001 From: cpitchford Date: Wed, 16 May 2018 18:46:50 +0100 Subject: [PATCH] Spaces also exist in AutoScalingGroupARN AutoScalingGroupARN has whitespace and newline that leaks into describe_auto_scaling_groups --- moto/autoscaling/responses.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moto/autoscaling/responses.py b/moto/autoscaling/responses.py index be7f2627a..5586c51dd 100644 --- a/moto/autoscaling/responses.py +++ b/moto/autoscaling/responses.py @@ -516,8 +516,7 @@ DESCRIBE_AUTOSCALING_GROUPS_TEMPLATE = """{{ group.health_check_period }} {{ group.default_cooldown }} - arn:aws:autoscaling:us-east-1:803981987763:autoScalingGroup:ca861182-c8f9-4ca7-b1eb-cd35505f5ebb - :autoScalingGroupName/{{ group.name }} + arn:aws:autoscaling:us-east-1:803981987763:autoScalingGroup:ca861182-c8f9-4ca7-b1eb-cd35505f5ebb:autoScalingGroupName/{{ group.name }} {% if group.termination_policies %} {% for policy in group.termination_policies %}