Skip to content

Commit

Permalink
Token lookups go through the registry getter instead of using the cur…
Browse files Browse the repository at this point in the history
…rent registry
  • Loading branch information
Michael-F-Bryan committed Jun 27, 2023
1 parent f030321 commit e5fa4f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/registry/src/wasmer_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ impl WasmerEnv {
// Fall back to the config file

let config = self.config().ok()?;
let login = config.registry.current_login()?;
Some(login.token.clone())
let registry_endpoint = self.registry_endpoint().ok()?;
config
.registry
.get_login_token_for_registry(registry_endpoint.as_str())
}
}

Expand Down

0 comments on commit e5fa4f2

Please sign in to comment.