fix: use provided username when fetching workspaces (#12955)

This commit is contained in:
Kyle Carberry
2024-04-13 14:39:57 -04:00
committed by GitHub
parent 00fcf36999
commit d3790bb5be
6 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func (r *RootCmd) vscodeSSH() *serpent.Command {
// will call this command after the workspace is started.
autostart := false
_, workspaceAgent, err := getWorkspaceAndAgent(ctx, inv, client, autostart, owner, name)
_, workspaceAgent, err := getWorkspaceAndAgent(ctx, inv, client, autostart, fmt.Sprintf("%s/%s", owner, name))
if err != nil {
return xerrors.Errorf("find workspace and agent: %w", err)
}