Skip to content

Commit

Permalink
CNAPP-11830: Call update immediately after role creation (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
YohaiCP authored Oct 6, 2024
1 parent 7fb3251 commit 3d7984f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dome9/resource_dome9_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func resourceRoleCreate(d *schema.ResourceData, meta interface{}) error {
}
d.SetId(strconv.Itoa(role.ID))

if _, err := d9Client.role.Update(d.Id(), req); err != nil {
return err
}

return resourceRoleRead(d, meta)
}

Expand Down

0 comments on commit 3d7984f

Please sign in to comment.