removed amiId temp variable
This commit is contained in:
parent
d6f8411c43
commit
1ff7cc28fe
|
@ -69,8 +69,7 @@ func (s *stepCreateAMI) Run(state map[string]interface{}) multistep.StepAction {
|
||||||
// Add tags to AMI
|
// Add tags to AMI
|
||||||
if s.Tags != nil {
|
if s.Tags != nil {
|
||||||
ui.Say(fmt.Sprintf("Adding tags to AMI (%s)...", createResp.ImageId))
|
ui.Say(fmt.Sprintf("Adding tags to AMI (%s)...", createResp.ImageId))
|
||||||
amiId := []string{createResp.ImageId}
|
_, err := ec2conn.CreateTags([]string{createResp.ImageId}, s.Tags)
|
||||||
_, err := ec2conn.CreateTags(amiId, s.Tags)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Errorf("Error adding tags to AMI (%s): %s", createResp.ImageId, err)
|
err := fmt.Errorf("Error adding tags to AMI (%s): %s", createResp.ImageId, err)
|
||||||
state["error"] = err
|
state["error"] = err
|
||||||
|
|
Loading…
Reference in New Issue