Skip to content

Commit

Permalink
fix updated at setId (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
robomill authored Nov 5, 2024
1 parent 0ffa335 commit 1179e45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metabase/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"log"
"strconv"
"terraform-provider-metabase/client"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -71,7 +70,7 @@ func resourceUserUpdate(_ context.Context, d *schema.ResourceData, meta interfac
return diags
}

d.SetId(strconv.Itoa(updated.Id))
d.SetId(updated.Email)
if err := d.Set("first_name", updated.FirstName); err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 1179e45

Please sign in to comment.