correct ami_name error reporting

This commit is contained in:
Matthew Hooker 2017-05-25 13:02:36 -07:00
parent 96232790b9
commit 1cf4754d80
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -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) {