Skip to content

Commit cdd8675

Browse files
committed
Set role_id also in resourceGithubOrganizationRoleCreate`
Since it's a computed value, it should be set in Create and Read Signed-off-by: Timo Sand <[email protected]>
1 parent a3b39ed commit cdd8675

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

github/resource_github_organization_role.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ func resourceGithubOrganizationRoleCreate(ctx context.Context, d *schema.Resourc
8484
}
8585

8686
d.SetId(fmt.Sprint(role.GetID()))
87+
if err = d.Set("role_id", role.GetID()); err != nil {
88+
return diag.FromErr(err)
89+
}
8790
return nil
8891
}
8992

0 commit comments

Comments
 (0)