Commit f2f69e6f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/ebs: don't need this variable

parent a2481f23
......@@ -34,8 +34,7 @@ func (s *stepStopInstance) Run(state map[string]interface{}) multistep.StepActio
Refresh: awscommon.InstanceStateRefreshFunc(ec2conn, instance),
StepState: state,
}
instanceRaw, err := awscommon.WaitForState(&stateChange)
instance = instanceRaw.(*ec2.Instance)
_, err = awscommon.WaitForState(&stateChange)
if err != nil {
err := fmt.Errorf("Error waiting for instance to stop: %s", 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