From 535d832f8abfaaf997931b162411dd7aeedfa4ba Mon Sep 17 00:00:00 2001 From: Jose Garcia Date: Tue, 31 Aug 2021 15:50:04 -0400 Subject: [PATCH] small tweak --- internal/codespaces/states.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/codespaces/states.go b/internal/codespaces/states.go index f3e9cbefe..274d27951 100644 --- a/internal/codespaces/states.go +++ b/internal/codespaces/states.go @@ -77,7 +77,7 @@ func PollPostCreateStates(ctx context.Context, log logger, apiClient *api.API, u func getPostCreateOutput(ctx context.Context, tunnelPort int, codespace *api.Codespace, user string) ([]PostCreateState, error) { stdout, err := RunCommand( - ctx, tunnelPort, sshDestination(codespace, user), + ctx, tunnelPort, fmt.Sprintf("%s@localhost", user), "cat /workspaces/.codespaces/shared/postCreateOutput.json", ) if err != nil { @@ -98,9 +98,4 @@ func getPostCreateOutput(ctx context.Context, tunnelPort int, codespace *api.Cod } return output.Steps, nil -} - -// TODO(josebalius): this won't be needed soon -func sshDestination(codespace *api.Codespace, user string) string { - return user + "@localhost" -} +} \ No newline at end of file