Skip to content

Commit

Permalink
Merge pull request #1029 from F5Networks/issue-1007
Browse files Browse the repository at this point in the history
Fixed issue 1007
  • Loading branch information
RavinderReddyF5 authored Nov 14, 2024
2 parents 9c7ea86 + f404d84 commit f2c8693
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bigip/resource_bigip_ltm_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,6 @@ func resourceBigipLtmPolicyCreate(ctx context.Context, d *schema.ResourceData, m

p := dataToPolicy(name, d)

d.SetId(name)
err := client.CreatePolicy(&p)
if err != nil {
return diag.FromErr(err)
Expand All @@ -1141,7 +1140,7 @@ func resourceBigipLtmPolicyCreate(ctx context.Context, d *schema.ResourceData, m
if t != nil {
return diag.FromErr(t)
}

d.SetId(name)
if !client.Teem {
id := uuid.New()
uniqueID := id.String()
Expand Down

0 comments on commit f2c8693

Please sign in to comment.