amazon: Fix source_ami_filter ignores owners

This commit is contained in:
Rickard von Essen 2016-12-01 14:29:31 +01:00
parent 4e1e2c18d5
commit bcc7f455b3
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)