Skip to content

Commit e4e3d2c

Browse files
committed
Fix panic in LDAP Link resource
1 parent 7ee6bc5 commit e4e3d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/resource_gitlab_group_ldap_link.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func resourceGitlabGroupLdapLinkRead(ctx context.Context, d *schema.ResourceData
140140
if buildTwoPartID(&ldapLink.Provider, &ldapLink.CN) == d.Id() {
141141
d.Set("group_id", groupId)
142142
d.Set("cn", ldapLink.CN)
143-
d.Set("group_access", ldapLink.GroupAccess)
143+
d.Set("group_access", accessLevelValueToName[ldapLink.GroupAccess])
144144
d.Set("ldap_provider", ldapLink.Provider)
145145
found = true
146146
break

0 commit comments

Comments
 (0)