Skip to content

Commit ff81fff

Browse files
authored
fix: [PL-57535]: Fixed a bug to allow userIds to be imported during terraform import (#1085)
1 parent 3c2e015 commit ff81fff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/service/platform/usergroup/usergroup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ func resourceUserGroupRead(ctx context.Context, d *schema.ResourceData, meta int
176176

177177
attr1 := resp.Data.SsoLinked
178178

179-
if attr, ok := d.GetOk("users"); ok && !attr1 {
179+
attr := resp.Data.Users
180+
if attr != nil && !attr1 {
180181
d.Set("users", attr)
181182
} else if attr1 {
182183
d.Set("users", []string{})

0 commit comments

Comments
 (0)