Skip to content

Commit

Permalink
Fixed issue 1007
Browse files Browse the repository at this point in the history
  • Loading branch information
ramaniprateek committed Nov 5, 2024
1 parent 9c7ea86 commit f404d84
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 f404d84

Please sign in to comment.