Skip to content

Commit

Permalink
implement review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: tarilabs <[email protected]>

Co-authored-by: vsoch <[email protected]>
  • Loading branch information
tarilabs and vsoch committed Oct 21, 2024
1 parent 8f59ff1 commit 939f723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def push(
container = self.get_container(target)
files = files or []
self.auth.load_configs(
container, configs=None if config_path is None else [config_path]
container, configs=[config_path] if config_path else None
)

# Prepare a new manifest
Expand Down Expand Up @@ -870,7 +870,7 @@ def pull(
"""
container = self.get_container(target)
self.auth.load_configs(
container, configs=None if config_path is None else [config_path]
container, configs=[config_path] if config_path else None
)
manifest = self.get_manifest(container, allowed_media_type)
outdir = outdir or oras.utils.get_tmpdir()
Expand Down

0 comments on commit 939f723

Please sign in to comment.