builder/amazon/all: address feedback for ami tag refactoring change
Use explicit name for Tag field and note tags added in the ui.
This commit is contained in:
parent
97e4f1d180
commit
9638a30d35
|
@ -22,6 +22,7 @@ func (s *StepCreateTags) Run(state map[string]interface{}) multistep.StepAction
|
||||||
|
|
||||||
var ec2Tags []ec2.Tag
|
var ec2Tags []ec2.Tag
|
||||||
for key, value := range s.Tags {
|
for key, value := range s.Tags {
|
||||||
|
ui.Message(fmt.Sprintf("Adding tag: \"%s\": \"%s\"", key, value))
|
||||||
ec2Tags = append(ec2Tags, ec2.Tag{key, value})
|
ec2Tags = append(ec2Tags, ec2.Tag{key, value})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&common.StepProvision{},
|
&common.StepProvision{},
|
||||||
&stepStopInstance{},
|
&stepStopInstance{},
|
||||||
&stepCreateAMI{},
|
&stepCreateAMI{},
|
||||||
&awscommon.StepCreateTags{b.config.Tags},
|
&awscommon.StepCreateTags{Tags: b.config.Tags},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run!
|
// Run!
|
||||||
|
|
|
@ -177,7 +177,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&StepBundleVolume{},
|
&StepBundleVolume{},
|
||||||
&StepUploadBundle{},
|
&StepUploadBundle{},
|
||||||
&StepRegisterAMI{},
|
&StepRegisterAMI{},
|
||||||
&awscommon.StepCreateTags{b.config.Tags},
|
&awscommon.StepCreateTags{Tags: b.config.Tags},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run!
|
// Run!
|
||||||
|
|
Loading…
Reference in New Issue