config: Add 'list' to variable type error message

This commit is contained in:
Justin Campbell 2017-04-20 15:18:12 -04:00 committed by Martin Atkins
parent 6e489a5e83
commit cf775ded0e
1 changed files with 1 additions and 1 deletions

View File

@ -1017,7 +1017,7 @@ func (v *Variable) ValidateTypeAndDefault() error {
// If an explicit type is declared, ensure it is valid // If an explicit type is declared, ensure it is valid
if v.DeclaredType != "" { if v.DeclaredType != "" {
if _, ok := typeStringMap[v.DeclaredType]; !ok { if _, ok := typeStringMap[v.DeclaredType]; !ok {
return fmt.Errorf("Variable '%s' must be of type string or map - '%s' is not a valid type", v.Name, v.DeclaredType) return fmt.Errorf("Variable '%s' must be of type string, map, or list - '%s' is not a valid type", v.Name, v.DeclaredType)
} }
} }