Skip to content

Commit 10579ba

Browse files
committed
fix: add tls-verify parameters to request retry
Problem: the request retry after auth is added does not use the self._tls_verify variable. Solution: add the variable. Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1 parent 88bad1f commit 10579ba

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515

1616
## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
17+
- TLS verify added to retry as well (0.1.27)
1718
- To make it available for more OCI registries, the value of config used when `manifest_config` is not specified in `client.push()` has been changed from a pure empty string to `{}` (0.1.26)
1819
- refactor tests using fixtures and rework pre-commit configuration (0.1.25)
1920
- eliminate the additional subdirectory creation while pulling an image to a custom output directory (0.1.24)

oras/provider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ def do_request(
904904
json=json,
905905
headers=headers,
906906
stream=stream,
907+
verify=self._tls_verify,
907908
)
908909

909910
# Fallback to using Authorization if already required
@@ -919,6 +920,7 @@ def do_request(
919920
json=json,
920921
headers=headers,
921922
stream=stream,
923+
verify=self._tls_verify,
922924
)
923925

924926
return response

oras/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__copyright__ = "Copyright The ORAS Authors."
33
__license__ = "Apache-2.0"
44

5-
__version__ = "0.1.26"
5+
__version__ = "0.1.27"
66
AUTHOR = "Vanessa Sochat"
77
EMAIL = "vsoch@users.noreply.github.com"
88
NAME = "oras"

0 commit comments

Comments
 (0)