Skip to content

Commit

Permalink
fix field name
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 authored and glpatcern committed May 3, 2023
1 parent fec220a commit 13326f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cbox/group/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m *manager) fetchAllGroups(ctx context.Context) {
type Group struct {
GroupIdentifier string `json:"groupIdentifier"`
DisplayName string `json:"displayName"`
Gid int `json:"gid,omitempty"`
GID int `json:"gid,omitempty"`
IsComputingGroup bool `json:"isComputingGroup"`
}

Expand Down Expand Up @@ -205,7 +205,7 @@ func (m *manager) parseAndCacheGroup(ctx context.Context, g *Group) (*grouppb.Gr
GroupName: g.GroupIdentifier,
Mail: g.GroupIdentifier + "@cern.ch",
DisplayName: g.DisplayName,
GidNumber: int64(g.Gid),
GidNumber: int64(g.GID),
}

if err := m.cacheGroupDetails(group); err != nil {
Expand Down

0 comments on commit 13326f4

Please sign in to comment.