From 3cc8d35450d1178736948e4fe9c6444b982c1c26 Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Sun, 21 Aug 2016 00:58:01 +0000 Subject: [PATCH] [dynamic-source-ami] fix old key name in error message --- builder/amazon/common/run_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/run_config.go b/builder/amazon/common/run_config.go index 4de010a71..65f958567 100644 --- a/builder/amazon/common/run_config.go +++ b/builder/amazon/common/run_config.go @@ -68,7 +68,7 @@ func (c *RunConfig) Prepare(ctx *interpolate.Context) []error { // Validation errs := c.Comm.Prepare(ctx) if c.SourceAmi == "" && c.SourceAmiFilter.Empty() { - errs = append(errs, errors.New("A source_ami or dynamic_source_ami must be specified")) + errs = append(errs, errors.New("A source_ami or source_ami_filter must be specified")) } if c.InstanceType == "" {