From 995a14e0d8ea2fb0fe205480fd4885ef8075bd7e Mon Sep 17 00:00:00 2001 From: "S.Thiriet" Date: Mon, 5 Aug 2024 17:05:05 +0000 Subject: [PATCH] Fix timeout: Add timeout parameter on Artifactory constructor too --- pyartifactory/objects/artifactory.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyartifactory/objects/artifactory.py b/pyartifactory/objects/artifactory.py index ec68cb6..11eedff 100644 --- a/pyartifactory/objects/artifactory.py +++ b/pyartifactory/objects/artifactory.py @@ -23,8 +23,16 @@ def __init__( verify: Union[bool, str] = True, cert: Optional[str] = None, api_version: int = 1, + timeout: Optional[int] = None, ): - self.artifactory = AuthModel(url=url, auth=auth, verify=verify, cert=cert, api_version=api_version) + self.artifactory = AuthModel( + url=url, + auth=auth, + verify=verify, + cert=cert, + api_version=api_version, + timeout=timeout, + ) self.users = ArtifactoryUser(self.artifactory) self.groups = ArtifactoryGroup(self.artifactory) self.security = ArtifactorySecurity(self.artifactory)