Commit 2b86d326 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon: remove unnecessary validation

parent 0a31fac7
...@@ -13,7 +13,6 @@ import ( ...@@ -13,7 +13,6 @@ import (
"log" "log"
"os" "os"
"strings" "strings"
"text/template"
) )
// The unique ID for this builder // The unique ID for this builder
...@@ -138,12 +137,6 @@ func (b *Builder) Prepare(raws ...interface{}) error { ...@@ -138,12 +137,6 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if b.config.AMIName == "" { if b.config.AMIName == "" {
errs = packer.MultiErrorAppend( errs = packer.MultiErrorAppend(
errs, errors.New("ami_name must be specified")) 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 == "" { if b.config.S3Bucket == "" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment