Merge pull request #4235 from rickard-von-essen/fix-4232

amazon: Fix source_ami_filter ignores owners
This commit is contained in:
Rickard von Essen 2016-12-01 18:48:33 +01:00 committed by GitHub
commit c649fdbffd
1 changed files with 3 additions and 0 deletions

View File

@ -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)