mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-14 09:34:03 -06:00
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
|
||||
// that it is gone.
|
||||
ec2err, ok := err.(awserr.Error)
|
||||
if ok && ec2err.Code() == "InvalidSpotFleetRequestID.NotFound" {
|
||||
if ok && ec2err.Code() == "InvalidSpotFleetRequestId.NotFound" {
|
||||
d.SetId("")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user