Don't forget to prepend prefixes to names in v2 lists

This commit is contained in:
Frank Denis 2018-01-30 19:47:29 +01:00
parent 788e97cf86
commit 8f72a82b13
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ func (source *Source) parseV2(prefix string) ([]RegisteredServer, error) {
if len(name) == 0 {
return registeredServers, fmt.Errorf("Invalid format for source at [%s]", source.url)
}
name = prefix + name
var stampStr string
for _, subpart := range subparts {
subpart = strings.TrimFunc(subpart, unicode.IsSpace)