removed amiId temp variable

This commit is contained in:
James Massara 2013-08-01 18:35:43 -07:00
parent d6f8411c43
commit 1ff7cc28fe
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ func (s *stepCreateAMI) Run(state map[string]interface{}) multistep.StepAction {
// Add tags to AMI
if s.Tags != nil {
ui.Say(fmt.Sprintf("Adding tags to AMI (%s)...", createResp.ImageId))
amiId := []string{createResp.ImageId}
_, err := ec2conn.CreateTags(amiId, s.Tags)
_, err := ec2conn.CreateTags([]string{createResp.ImageId}, s.Tags)
if err != nil {
err := fmt.Errorf("Error adding tags to AMI (%s): %s", createResp.ImageId, err)
state["error"] = err