worker: rename config field in Go to reflect its toml name

For the sake of consistency, not a functional change.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-03-21 10:51:07 +01:00 committed by Tom Gundersen
parent 5028b19a71
commit 6e92263c23

View file

@ -123,7 +123,7 @@ func RequestAndRunJob(client *worker.Client, acceptedJobTypes []string, jobImpls
func main() {
var config struct {
KojiServers map[string]struct {
Koji map[string]struct {
Kerberos *struct {
Principal string `toml:"principal"`
KeyTab string `toml:"keytab"`
@ -193,7 +193,7 @@ func main() {
_ = os.Mkdir(output, os.ModeDir)
kojiServers := make(map[string]koji.GSSAPICredentials)
for server, creds := range config.KojiServers {
for server, creds := range config.Koji {
if creds.Kerberos == nil {
// For now we only support Kerberos authentication.
continue