Skip to content

Commit

Permalink
Use retries parameter (#44)
Browse files Browse the repository at this point in the history
Turns out while available as a parameter, it wasn't being passed through. As a result, a user could think they were retrying multiple types when in practice they had only a single shot at success.
  • Loading branch information
danielmmetz authored May 25, 2022
1 parent bad80cb commit b001ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions confidant_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
assume_role=None,
mfa_pin=None,
region=None,
retries=None,
retries=0,
backoff=None,
config_files=None,
profile=None,
Expand Down Expand Up @@ -115,7 +115,7 @@ def __init__(
'token_cache_file': '/dev/shm/confidant/confidant_token',
'assume_role': None,
'region': None,
'retries': 0,
'retries': retries,
'backoff': 1,
'verify': True,
'timeout': 5,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name="confidant-client",
version="2.2.4",
version="2.2.5",
packages=find_packages(exclude=["test*"]),
install_requires=[
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)
Expand Down

0 comments on commit b001ed2

Please sign in to comment.