config/validate: fix line number for header check

This commit is contained in:
Alex Crawford 2014-11-18 12:02:23 -08:00
parent d7602f3c08
commit a5b5c700a6

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
}
}