Fix typo in error code for aws_spot_fleet (#10928)
This commit is contained in:
parent
e508a3b59d
commit
dd187beda3
|
@ -658,7 +658,7 @@ func resourceAwsSpotFleetRequestRead(d *schema.ResourceData, meta interface{}) e
|
||||||
// If the spot request was not found, return nil so that we can show
|
// If the spot request was not found, return nil so that we can show
|
||||||
// that it is gone.
|
// that it is gone.
|
||||||
ec2err, ok := err.(awserr.Error)
|
ec2err, ok := err.(awserr.Error)
|
||||||
if ok && ec2err.Code() == "InvalidSpotFleetRequestID.NotFound" {
|
if ok && ec2err.Code() == "InvalidSpotFleetRequestId.NotFound" {
|
||||||
d.SetId("")
|
d.SetId("")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue