mirror of
https://github.com/distribution/distribution.git
synced 2025-08-09 02:37:41 +00:00
registry: fix ServerAddress setting
This ensures that ServerAddress is set, while previously it was getting set after configFile.Configs. Signed-off-by: Vaidas Jablonskis <jablonskis@gmail.com>
This commit is contained in:
parent
ae0ebb9d07
commit
df85a0f700
@ -126,8 +126,8 @@ func LoadConfig(rootPath string) (*ConfigFile, error) {
|
|||||||
return &configFile, err
|
return &configFile, err
|
||||||
}
|
}
|
||||||
authConfig.Auth = ""
|
authConfig.Auth = ""
|
||||||
configFile.Configs[k] = authConfig
|
|
||||||
authConfig.ServerAddress = k
|
authConfig.ServerAddress = k
|
||||||
|
configFile.Configs[k] = authConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &configFile, nil
|
return &configFile, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user