config/validate: disable - vs _ message for now

This commit is contained in:
Alex Crawford 2014-11-18 12:09:55 -08:00
parent b621756d92
commit 45793f1254

View File

@ -103,7 +103,8 @@ func parseCloudConfig(config []byte, report *Report) (n node, err error) {
// and makes a note of each replacement in the report. // and makes a note of each replacement in the report.
func normalizeNodeNames(node node, report *Report) node { func normalizeNodeNames(node node, report *Report) node {
if strings.Contains(node.name, "-") { if strings.Contains(node.name, "-") {
report.Info(node.line, fmt.Sprintf("%q uses '-' instead of '_'", node.name)) // TODO(crawford): Enable this message once the new validator hits stable.
//report.Info(node.line, fmt.Sprintf("%q uses '-' instead of '_'", node.name))
node.name = strings.Replace(node.name, "-", "_", -1) node.name = strings.Replace(node.name, "-", "_", -1)
} }
for i := range node.children { for i := range node.children {