Skip to content

Commit

Permalink
fix(amazon): Interpolate source_ami_filter.owners
Browse files Browse the repository at this point in the history
configuration
  • Loading branch information
grv87 committed Mar 31, 2017
1 parent c529a96 commit 4fc1e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class GradlePackerPlugin implements Plugin<Project> {
filters = ['image-id': [parseString(builder['source_ami'], t.contextTemplateData)]]
else {
filters = builder['source_ami_filter']['filters'].collectEntries { key, values -> ["$key": values instanceof List ? values.collect { [parseString(it, t.contextTemplateData)] } : [values instanceof String ? parseString(values, t.contextTemplateData) : values]] }
owners = builder['source_ami_filter']['owners'] ?: []
owners = (builder['source_ami_filter']['owners'] ?: []).collect { parseString(it, t.contextTemplateData) }
mostRecent = builder['source_ami_filter']['most_recent'] ?: false
}
t.inputs.property('sourceAMI', {
Expand Down

0 comments on commit 4fc1e0c

Please sign in to comment.