Merge pull request #258 from crawford/header

config/validate: fix line number for header check
This commit is contained in:
Alex Crawford 2014-11-18 12:11:35 -08:00
commit b621756d92

View File

@ -44,7 +44,7 @@ func Validate(userdataBytes []byte) (Report, error) {
return validateCloudConfig(userdataBytes, Rules)
default:
return Report{entries: []Entry{
Entry{kind: entryError, message: `must be "#cloud-config" or begin with "#!"`},
Entry{kind: entryError, message: `must be "#cloud-config" or begin with "#!"`, line: 1},
}}, nil
}
}