Commit 7b64723a authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2327 from emate/fix-for-spot-requests-cleanup

Fixes spot instance cleanup.
parents 21d50916 586cab11
......@@ -296,7 +296,7 @@ func (s *StepRunSourceInstance) Cleanup(state multistep.StateBag) {
if s.spotRequest != nil {
ui.Say("Cancelling the spot request...")
input := &ec2.CancelSpotInstanceRequestsInput{
SpotInstanceRequestIDs: []*string{s.spotRequest.InstanceID},
SpotInstanceRequestIDs: []*string{s.spotRequest.SpotInstanceRequestID},
}
if _, err := ec2conn.CancelSpotInstanceRequests(input); err != nil {
ui.Error(fmt.Sprintf("Error cancelling the spot request, may still be around: %s", 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