Skip to content

Commit

Permalink
Merge pull request #172 from sthiriet/master
Browse files Browse the repository at this point in the history
Fix timeout: Add timeout parameter on Artifactory constructor too
  • Loading branch information
anancarv authored Aug 7, 2024
2 parents 76ef54b + 995a14e commit a4a07c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyartifactory/objects/artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4a07c9

Please sign in to comment.