Skip to content

Commit

Permalink
fix: do not create kbadmin througth accountprovision (#8709)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun authored Dec 25, 2024
1 parent bd1a859 commit 40f1046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/lorry/engines/mysql/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ func (mgr *Manager) DescribeUser(ctx context.Context, userName string) (*models.

func (mgr *Manager) CreateUser(ctx context.Context, userName, password, statement string) error {
if !strings.HasPrefix(statement, "CREATE ") {
return fmt.Errorf("the user %s is created with invalid sql %s, wait and try again", userName, statement)
mgr.Logger.Info("the user is created with invalid sql, just ignore", "user", userName, "sql", statement)
return nil
}

sql := fmt.Sprintf(createUserSQL, userName, password)
Expand Down

0 comments on commit 40f1046

Please sign in to comment.