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 committed Aug 12, 2021
1 parent 70189e6 commit 9c5e508
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions 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
10 changes: 5 additions & 5 deletions ec2_vpc_vpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,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 9c5e508

Please sign in to comment.