Skip to content

Commit

Permalink
fix: add tls-verify parameters to request retry
Browse files Browse the repository at this point in the history
Problem: the request retry after auth is added does not
use the self._tls_verify variable.
Solution: add the variable.

Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Nov 17, 2023
1 parent 88bad1f commit 10579ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
- TLS verify added to retry as well (0.1.27)
- 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)
- refactor tests using fixtures and rework pre-commit configuration (0.1.25)
- eliminate the additional subdirectory creation while pulling an image to a custom output directory (0.1.24)
Expand Down
2 changes: 2 additions & 0 deletions oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,7 @@ def do_request(
json=json,
headers=headers,
stream=stream,
verify=self._tls_verify,
)

# Fallback to using Authorization if already required
Expand All @@ -919,6 +920,7 @@ def do_request(
json=json,
headers=headers,
stream=stream,
verify=self._tls_verify,
)

return response
Expand Down
2 changes: 1 addition & 1 deletion oras/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright The ORAS Authors."
__license__ = "Apache-2.0"

__version__ = "0.1.26"
__version__ = "0.1.27"
AUTHOR = "Vanessa Sochat"
EMAIL = "[email protected]"
NAME = "oras"
Expand Down

0 comments on commit 10579ba

Please sign in to comment.