From 87239dcec89fd3b518513cbedf77ed5eb19bac04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Naveiras?= Date: Tue, 21 Jul 2015 17:18:50 +0200 Subject: [PATCH] Amend AWS spot instace state name cancelled --- builtin/providers/aws/resource_aws_spot_instance_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_spot_instance_request.go b/builtin/providers/aws/resource_aws_spot_instance_request.go index 464a3de0c..bed4c42cb 100644 --- a/builtin/providers/aws/resource_aws_spot_instance_request.go +++ b/builtin/providers/aws/resource_aws_spot_instance_request.go @@ -160,7 +160,7 @@ func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{} request := resp.SpotInstanceRequests[0] // if the request is cancelled, then it is gone - if *request.State == "canceled" { + if *request.State == "cancelled" { d.SetId("") return nil }