From fc32a79139b9a33bba725b1f1d9c37908a131f92 Mon Sep 17 00:00:00 2001 From: cpitchford Date: Wed, 16 May 2018 18:13:44 +0100 Subject: [PATCH] New line in LaunchConfigurationARN statement The statement that defines LaunchConfigurationARN had a newline and whitespace prefix The ARN reported in describe_launch_configurations has this newline and white space. Arns should not have whitespace or newlines! --- 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 c7170e17..be7f2627 100644 --- a/moto/autoscaling/responses.py +++ b/moto/autoscaling/responses.py @@ -320,8 +320,7 @@ DESCRIBE_LAUNCH_CONFIGURATIONS_TEMPLATE = """ {% endif %} {{ launch_configuration.instance_type }} - arn:aws:autoscaling:us-east-1:803981987763:launchConfiguration: - 9dbbbf87-6141-428a-a409-0752edbe6cad:launchConfigurationName/{{ launch_configuration.name }} + arn:aws:autoscaling:us-east-1:803981987763:launchConfiguration:9dbbbf87-6141-428a-a409-0752edbe6cad:launchConfigurationName/{{ launch_configuration.name }} {% if launch_configuration.block_device_mappings %} {% for mount_point, mapping in launch_configuration.block_device_mappings.items() %}