correct ami_name error reporting
This commit is contained in:
parent
96232790b9
commit
1cf4754d80
|
@ -69,7 +69,7 @@ func (c *AMIConfig) Prepare(ctx *interpolate.Context) []error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(c.AMIName) < 3 || len(c.AMIName) > 128 {
|
if len(c.AMIName) < 3 || len(c.AMIName) > 128 {
|
||||||
errs = append(errs, fmt.Errorf("AMIName must be between 3 and 128 characters long"))
|
errs = append(errs, fmt.Errorf("ami_name must be between 3 and 128 characters long"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.AMIName != templateCleanAMIName(c.AMIName) {
|
if c.AMIName != templateCleanAMIName(c.AMIName) {
|
||||||
|
|
Loading…
Reference in New Issue