From f2f69e6f7bdf58d63322949323c77406500511f3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 31 Jul 2013 09:35:26 -0700 Subject: [PATCH] builder/amazon/ebs: don't need this variable --- builder/amazon/ebs/step_stop_instance.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/amazon/ebs/step_stop_instance.go b/builder/amazon/ebs/step_stop_instance.go index 6f6add6c8..8aa4385e8 100644 --- a/builder/amazon/ebs/step_stop_instance.go +++ b/builder/amazon/ebs/step_stop_instance.go @@ -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