builder/amazon/ebs: validate access config

This commit is contained in:
Mitchell Hashimoto 2013-07-16 13:24:18 +09:00
parent e5e306049c
commit 4878cec0e4
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ func (b *Builder) Prepare(raws ...interface{}) error {
// Accumulate any errors
errs := common.CheckUnusedConfig(md)
errs = packer.MultiErrorAppend(errs, b.config.AccessConfig.Prepare()...)
errs = packer.MultiErrorAppend(errs, b.config.RunConfig.Prepare()...)
// Accumulate any errors
if b.config.AMIName == "" {