Fix typo in error code for aws_spot_fleet (#10928)

This commit is contained in:
Conor Mongey 2016-12-27 16:26:20 +00:00 committed by Paul Stack
parent e508a3b59d
commit dd187beda3
1 changed files with 1 additions and 1 deletions

View File

@ -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
}