From bcc7f455b3952ab74b882055281f6c30ee204c1d Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Thu, 1 Dec 2016 14:29:31 +0100 Subject: [PATCH] amazon: Fix source_ami_filter ignores owners --- builder/amazon/common/step_source_ami_info.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/amazon/common/step_source_ami_info.go b/builder/amazon/common/step_source_ami_info.go index e1a7368df..b83b31d74 100644 --- a/builder/amazon/common/step_source_ami_info.go +++ b/builder/amazon/common/step_source_ami_info.go @@ -65,6 +65,9 @@ func (s *StepSourceAMIInfo) Run(state multistep.StateBag) multistep.StepAction { if len(s.AmiFilters.Filters) > 0 { params.Filters = buildAmiFilters(s.AmiFilters.Filters) } + if len(s.AmiFilters.Owners) > 0 { + params.Owners = s.AmiFilters.Owners + } log.Printf("Using AMI Filters %v", params) imageResp, err := ec2conn.DescribeImages(params)