diff --git a/oras/provider.py b/oras/provider.py index 1c57bd1..809ee12 100644 --- a/oras/provider.py +++ b/oras/provider.py @@ -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 @@ -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()