builder/amazon/ebs: don't need this variable
This commit is contained in:
parent
a2481f2300
commit
f2f69e6f7b
|
@ -34,8 +34,7 @@ func (s *stepStopInstance) Run(state map[string]interface{}) multistep.StepActio
|
||||||
Refresh: awscommon.InstanceStateRefreshFunc(ec2conn, instance),
|
Refresh: awscommon.InstanceStateRefreshFunc(ec2conn, instance),
|
||||||
StepState: state,
|
StepState: state,
|
||||||
}
|
}
|
||||||
instanceRaw, err := awscommon.WaitForState(&stateChange)
|
_, err = awscommon.WaitForState(&stateChange)
|
||||||
instance = instanceRaw.(*ec2.Instance)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Errorf("Error waiting for instance to stop: %s", err)
|
err := fmt.Errorf("Error waiting for instance to stop: %s", err)
|
||||||
state["error"] = err
|
state["error"] = err
|
||||||
|
|
Loading…
Reference in New Issue