Skip to content

Commit

Permalink
fix: fix init of timeout attributes in config
Browse files Browse the repository at this point in the history
  • Loading branch information
niek-mereu committed Feb 3, 2025
1 parent de9de03 commit addce98
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osman/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def __init__(
retry_on_timeout: bool
init
"""
self.timeout = timeout
self.max_retries = max_retries
self.retry_on_timeout = retry_on_timeout

# non empty host_url takes precedence over auth_method
if host_url:
logging.info("Using host_url: '%s'", host_url)
Expand Down Expand Up @@ -241,9 +245,6 @@ def __init__(
self.aws_secret_access_key = aws_secret_access_key
self.aws_region = aws_region
self.aws_service = aws_service
self.timeout = timeout
self.max_retries = max_retries
self.retry_on_timeout = retry_on_timeout

def _reload_defaults_from_env(self):
"""
Expand Down

0 comments on commit addce98

Please sign in to comment.