Skip to content

Commit

Permalink
Merge pull request #4591 from saravanan30erd/fix-4511
Browse files Browse the repository at this point in the history
fix for issue in PR #4511
  • Loading branch information
bflad authored May 22, 2018
2 parents 121cedb + 43cb233 commit c97455a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_spot_fleet_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func buildSpotFleetLaunchSpecification(d map[string]interface{}, meta interface{
}
}

if v, ok := d["iam_instance_profile_arn"]; ok {
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 c97455a

Please sign in to comment.