Commit 148d900a authored by Frank Denis's avatar Frank Denis

Legacy format: store server descriptions

parent f8a6e560
...@@ -194,6 +194,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) { ...@@ -194,6 +194,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) {
continue continue
} }
name := prefix + record[0] name := prefix + record[0]
description := record[2]
serverAddrStr := record[10] serverAddrStr := record[10]
providerName := record[11] providerName := record[11]
serverPkStr := record[12] serverPkStr := record[12]
...@@ -209,7 +210,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) { ...@@ -209,7 +210,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) {
return registeredServers, err return registeredServers, err
} }
registeredServer := RegisteredServer{ registeredServer := RegisteredServer{
name: name, stamp: stamp, name: name, stamp: stamp, description: description,
} }
dlog.Debugf("Registered [%s] with stamp [%s]", name, stamp.String()) dlog.Debugf("Registered [%s] with stamp [%s]", name, stamp.String())
registeredServers = append(registeredServers, registeredServer) registeredServers = append(registeredServers, registeredServer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment