Amend AWS spot instace state name cancelled
This commit is contained in:
parent
f7ab12cf56
commit
87239dcec8
|
@ -160,7 +160,7 @@ func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{}
|
||||||
request := resp.SpotInstanceRequests[0]
|
request := resp.SpotInstanceRequests[0]
|
||||||
|
|
||||||
// if the request is cancelled, then it is gone
|
// if the request is cancelled, then it is gone
|
||||||
if *request.State == "canceled" {
|
if *request.State == "cancelled" {
|
||||||
d.SetId("")
|
d.SetId("")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue