Merge pull request #1486 from evanstachowiak/master

Fix MaxRecords compare issue
This commit is contained in:
Steve Pulec 2018-03-07 07:47:13 -05:00 committed by GitHub
commit 0361d5ddbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]