From 1acb4478956f2aa794295060096e4e6f8d976054 Mon Sep 17 00:00:00 2001 From: Niek Mereu <88375778+niek-mereu@users.noreply.github.com> Date: Mon, 3 Feb 2025 08:17:54 +0100 Subject: [PATCH] fix: fix init of timeout attributes in config (#74) --- osman/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osman/config.py b/osman/config.py index 54961e9..3d883cb 100644 --- a/osman/config.py +++ b/osman/config.py @@ -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) @@ -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): """