Commit fd6dbc42 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/common: rename StepModifyAttributes to

StepModifyAMIAttributes
parent bfc2ac1e
...@@ -7,14 +7,14 @@ import ( ...@@ -7,14 +7,14 @@ import (
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
) )
type StepModifyAttributes struct { type StepModifyAMIAttributes struct {
Users []string Users []string
Groups []string Groups []string
ProductCodes []string ProductCodes []string
Description string Description string
} }
func (s *StepModifyAttributes) Run(state map[string]interface{}) multistep.StepAction { func (s *StepModifyAMIAttributes) Run(state map[string]interface{}) multistep.StepAction {
ec2conn := state["ec2"].(*ec2.EC2) ec2conn := state["ec2"].(*ec2.EC2)
ui := state["ui"].(packer.Ui) ui := state["ui"].(packer.Ui)
amis := state["amis"].(map[string]string) amis := state["amis"].(map[string]string)
...@@ -50,6 +50,6 @@ func (s *StepModifyAttributes) Run(state map[string]interface{}) multistep.StepA ...@@ -50,6 +50,6 @@ func (s *StepModifyAttributes) Run(state map[string]interface{}) multistep.StepA
return multistep.ActionContinue return multistep.ActionContinue
} }
func (s *StepModifyAttributes) Cleanup(state map[string]interface{}) { func (s *StepModifyAMIAttributes) Cleanup(state map[string]interface{}) {
// No cleanup... // No cleanup...
} }
...@@ -126,7 +126,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -126,7 +126,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&stepStopInstance{}, &stepStopInstance{},
&stepCreateAMI{}, &stepCreateAMI{},
&awscommon.StepCreateTags{Tags: b.config.Tags}, &awscommon.StepCreateTags{Tags: b.config.Tags},
&awscommon.StepModifyAttributes{ &awscommon.StepModifyAMIAttributes{
Description: b.config.AMIDescription, Description: b.config.AMIDescription,
Users: b.config.AMIUsers, Users: b.config.AMIUsers,
Groups: b.config.AMIGroups, Groups: b.config.AMIGroups,
......
...@@ -206,7 +206,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -206,7 +206,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&StepUploadBundle{}, &StepUploadBundle{},
&StepRegisterAMI{}, &StepRegisterAMI{},
&awscommon.StepCreateTags{Tags: b.config.Tags}, &awscommon.StepCreateTags{Tags: b.config.Tags},
&awscommon.StepModifyAttributes{ &awscommon.StepModifyAMIAttributes{
Description: b.config.AMIDescription, Description: b.config.AMIDescription,
Users: b.config.AMIUsers, Users: b.config.AMIUsers,
Groups: b.config.AMIGroups, Groups: b.config.AMIGroups,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment