Skip to content

Commit

Permalink
Fixed ACL error "create base ACL group Admins: save group (groupKey (#…
Browse files Browse the repository at this point in the history
…8281)

groups/Admins): already exists" when restarting ACL

Co-authored-by: Konstantin Runov <k.runov@itgroup42.ru>
  • Loading branch information
runebone and runebone authored Oct 14, 2024
1 parent 43a1c9b commit 411e528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/auth/acl/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ func (s *AuthService) ListUserExternalPrincipals(_ context.Context, _ string, _
}

func (s *AuthService) getSetupTimestamp(ctx context.Context) (time.Time, error) {
valWithPred, err := s.store.Get(ctx, []byte(ServerPartitionKey), []byte(auth.SetupTimestampKeyName))
valWithPred, err := s.store.Get(ctx, []byte(ServerPartitionKey), []byte(model.MetadataKeyPath(auth.SetupTimestampKeyName)))
if err != nil {
return time.Time{}, err
}
Expand Down

0 comments on commit 411e528

Please sign in to comment.