mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: prebuild user without ssh key when fetching owner ctx (#18541)
This commit is contained in:
@@ -299,7 +299,7 @@ func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uui
|
||||
// unless the template leaks it.
|
||||
// nolint:gocritic
|
||||
key, err := r.db.GetGitSSHKey(dbauthz.AsProvisionerd(ctx), ownerID)
|
||||
if err != nil {
|
||||
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
|
||||
return xerrors.Errorf("ssh key: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user