Skip to content

Commit

Permalink
fix target_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jul 28, 2020
1 parent 1e43aa1 commit 2f8223d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aws/resource_aws_spot_fleet_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -1478,9 +1478,11 @@ func resourceAwsSpotFleetRequestUpdate(d *schema.ResourceData, meta interface{})

updateFlag := false

if val, ok := d.GetOkExists("target_capacity"); ok {
req.TargetCapacity = aws.Int64(int64(val.(int)))
updateFlag = true
if d.HasChange("target_capacity") {
if val, ok := d.GetOkExists("target_capacity"); ok {
req.TargetCapacity = aws.Int64(int64(val.(int)))
updateFlag = true
}
}

if d.HasChange("excess_capacity_termination_policy") {
Expand Down

0 comments on commit 2f8223d

Please sign in to comment.