Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #639 from cgwalters/fix-auth-pulls
Browse files Browse the repository at this point in the history
proxy: Fix logic error with auth_data switch
  • Loading branch information
cgwalters authored Jun 5, 2024
2 parents fd2e428 + 72c707b commit 8f7fd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/container/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ pub fn merge_default_container_proxy_opts_with_isolation(
if !auth_specified {
let root = &Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
config.auth_data = crate::globals::get_global_authfile(root)?.map(|a| a.1);
// If there's no authfile, then force on anonymous pulls to ensure
// If there's no auth data, then force on anonymous pulls to ensure
// that the container stack doesn't try to find it in the standard
// container paths.
if config.authfile.is_none() {
if config.auth_data.is_none() {
config.auth_anonymous = true;
}
}
Expand Down

0 comments on commit 8f7fd02

Please sign in to comment.