Skip to content

Commit

Permalink
Update sync.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Aug 28, 2024
1 parent 44bc043 commit 738b1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func (s *syncGSuite) SyncGroupsUsers(queryGroups string, queryUsers string) erro
log.Info("creating user")
_, err := s.aws.CreateUser(awsUser)
if err != nil {
errHTTP := new(aws.ErrHttpNotOK)
errHTTP := new(aws.ErrHTTPNotOK)
if errors.As(err, &errHTTP) && errHTTP.StatusCode == 409 {
log.WithField("user", awsUser.Username).Warn("user already exists")
continue
Expand Down

0 comments on commit 738b1b6

Please sign in to comment.