builder/amazon: remove unnecessary validation

This commit is contained in:
Mitchell Hashimoto 2013-08-08 15:51:20 -07:00
parent 0a31fac749
commit 2b86d32675
1 changed files with 0 additions and 7 deletions

View File

@ -13,7 +13,6 @@ import (
"log"
"os"
"strings"
"text/template"
)
// The unique ID for this builder
@ -138,12 +137,6 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if b.config.AMIName == "" {
errs = packer.MultiErrorAppend(
errs, errors.New("ami_name must be specified"))
} else {
_, err = template.New("ami").Parse(b.config.AMIName)
if err != nil {
errs = packer.MultiErrorAppend(
errs, fmt.Errorf("Failed parsing ami_name: %s", err))
}
}
if b.config.S3Bucket == "" {