// Config: parse hosts.yaml
-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2022 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
errPrefix, GroupSpecialSeparator)
}
+ if hostMap[x.Name] != nil {
+ return nil, fmt.Errorf("%s host name already exists",
+ errPrefix)
+ }
hostMap[x.Name] = x
}