From afe922bfb60a195370d042772dd9b5d7cfe0eda3 Mon Sep 17 00:00:00 2001 From: Evan Stachowiak Date: Wed, 21 Feb 2018 13:11:26 +0100 Subject: [PATCH] Fix MaxRecords compare issue --- moto/autoscaling/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/autoscaling/responses.py b/moto/autoscaling/responses.py index d3f9ca483..787198dfa 100644 --- a/moto/autoscaling/responses.py +++ b/moto/autoscaling/responses.py @@ -166,7 +166,7 @@ class AutoScalingResponse(BaseResponse): start = all_names.index(token) + 1 else: start = 0 - max_records = self._get_param("MaxRecords", 50) + max_records = int(self._get_param("MaxRecords", 50)) if max_records > 100: raise ValueError groups = all_groups[start:start + max_records]