Commit 1ff7cc28 authored by James Massara's avatar James Massara

removed amiId temp variable

parent d6f8411c
......@@ -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
......
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