Node IDs are always upper case (ref #269)

This commit is contained in:
Jakob Borg
2014-05-24 21:01:21 +02:00
parent 217f29de76
commit e2cb0219c7
3 changed files with 4 additions and 3 deletions

View File

@@ -191,6 +191,7 @@ func Load(rd io.Reader, myID string) (Configuration, error) {
// Strip spaces and dashes
node.NodeID = strings.Replace(node.NodeID, "-", "", -1)
node.NodeID = strings.Replace(node.NodeID, " ", "", -1)
node.NodeID = strings.ToUpper(node.NodeID)
}
// Check for missing, bad or duplicate repository ID:s