10000 fix: prebuild user without ssh key when fetching owner ctx (#18541) · coder/coder@e5eb2a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5eb2a8

Browse files
authored
fix: prebuild user without ssh key when fetching owner ctx (#18541)
1 parent cd484db commit e5eb2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/dynamicparameters/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uui
299299
// unless the template leaks it.
300300
// nolint:gocritic
301301
key, err := r.db.GetGitSSHKey(dbauthz.AsProvisionerd(ctx), ownerID)
302-
if err != nil {
302+
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
303303
return xerrors.Errorf("ssh key: %w", err)
304304
}
305305

0 commit comments

Comments
 (0)
0