Skip to content

Commit

Permalink
PR hashicorp#4511 updated one line fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan30erd committed May 22, 2018
1 parent ea61a30 commit 43cb233
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions aws/resource_aws_spot_fleet_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,9 @@ func buildSpotFleetLaunchSpecification(d map[string]interface{}, meta interface{
}
}

if d["iam_instance_profile_arn"] != "" {
if v, ok := d["iam_instance_profile_arn"]; ok {
opts.IamInstanceProfile = &ec2.IamInstanceProfileSpecification{
Arn: aws.String(v.(string)),
}
if v, ok := d["iam_instance_profile_arn"]; ok && v.(string) != "" {
opts.IamInstanceProfile = &ec2.IamInstanceProfileSpecification{
Arn: aws.String(v.(string)),
}
}

Expand Down

0 comments on commit 43cb233

Please sign in to comment.