Skip to content

Commit

Permalink
Fix failing tasts with cast to int before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
aemous committed Sep 4, 2024
1 parent c335989 commit 85012ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awscli/customizations/paginate.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def add_to_parser(self, parser):
type=self.type_map[self._parse_type])

def _check_and_warn_negative_max_items(self, value):
if value <= 0:
if int(value) <= 0:
uni_print(
"warning: Non-positive values for --max-items are unsupported and may yield undefined behavior.\n",
sys.stderr)
Expand Down

0 comments on commit 85012ee

Please sign in to comment.