amazon: Fix source_ami_filter ignores owners
This commit is contained in:
parent
4e1e2c18d5
commit
bcc7f455b3
|
@ -65,6 +65,9 @@ func (s *StepSourceAMIInfo) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
if len(s.AmiFilters.Filters) > 0 {
|
if len(s.AmiFilters.Filters) > 0 {
|
||||||
params.Filters = buildAmiFilters(s.AmiFilters.Filters)
|
params.Filters = buildAmiFilters(s.AmiFilters.Filters)
|
||||||
}
|
}
|
||||||
|
if len(s.AmiFilters.Owners) > 0 {
|
||||||
|
params.Owners = s.AmiFilters.Owners
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Using AMI Filters %v", params)
|
log.Printf("Using AMI Filters %v", params)
|
||||||
imageResp, err := ec2conn.DescribeImages(params)
|
imageResp, err := ec2conn.DescribeImages(params)
|
||||||
|
|
Loading…
Reference in New Issue