mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix: correct typo var name mirroHostConfig (#3777)
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> Co-authored-by: TeCHiScy <741195+TeCHiScy@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
851ad012cb
commit
67b8241a7b
@@ -857,17 +857,17 @@ func newClient(opts syncconf.RegistryConfig, credentials syncconf.CredentialsFil
|
||||
hostConfigOpts = append(hostConfigOpts, hostConfig)
|
||||
|
||||
for _, mirror := range mirrorsHosts {
|
||||
mirroHostConfig := hostConfig
|
||||
mirroHostConfig.Name = mirror
|
||||
mirroHostConfig.Hostname = mirror
|
||||
mirrorHostConfig := hostConfig
|
||||
mirrorHostConfig.Name = mirror
|
||||
mirrorHostConfig.Hostname = mirror
|
||||
|
||||
creds, ok := credentials[mirror]
|
||||
if ok {
|
||||
mirroHostConfig.User = creds.Username
|
||||
mirroHostConfig.Pass = creds.Password
|
||||
mirrorHostConfig.User = creds.Username
|
||||
mirrorHostConfig.Pass = creds.Password
|
||||
}
|
||||
|
||||
hostConfigOpts = append(hostConfigOpts, mirroHostConfig)
|
||||
hostConfigOpts = append(hostConfigOpts, mirrorHostConfig)
|
||||
}
|
||||
|
||||
regOpts := []reg.Opts{}
|
||||
|
||||
Reference in New Issue
Block a user