Skip to content

Commit

Permalink
Fix pylint test errors "arguments-renamed"
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble authored and alinabuzachis committed Oct 23, 2024
1 parent 8746d30 commit 587a6ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/ec2_vpc_vgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ def status_code_from_exception(error):
return (error.response['Error']['Code'], error.response['Error']['Message'],)

@staticmethod
def found(response_codes, catch_extra_error_codes=None):
def found(response_code, catch_extra_error_codes=None):
retry_on = ['The maximum number of mutating objects has been reached.']

if catch_extra_error_codes:
retry_on.extend(catch_extra_error_codes)
if not isinstance(response_codes, tuple):
response_codes = (response_codes,)
if not isinstance(response_code, tuple):
response_code = (response_code,)

for code in response_codes:
if super().found(response_codes, catch_extra_error_codes):
for code in response_code:
if super().found(response_code, catch_extra_error_codes):
return True

return False
Expand Down

0 comments on commit 587a6ee

Please sign in to comment.