Skip to content

Commit

Permalink
Use context and provider from workspace client when setting up creden…
Browse files Browse the repository at this point in the history
…tials
  • Loading branch information
janekbaraniewski authored and pascalbreuninger committed Dec 18, 2024
1 parent 4680a20 commit 570bb4a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,6 @@ func (cmd *SSHCmd) startTunnel(ctx context.Context, devPodConfig *config.Config,
return err
}

if cmd.Provider == "" {
cmd.Provider = "devpod-pro"
}

// Traffic is coming in from the outside, we need to forward it to the container
if cmd.Proxy || cmd.Stdio {
if cmd.Proxy {
Expand All @@ -479,7 +475,7 @@ func (cmd *SSHCmd) startTunnel(ctx context.Context, devPodConfig *config.Config,
}()

go func() {
if err := cmd.setupLoftPlatformAccess(ctx, containerClient, cmd.Context, cmd.Provider, log); err != nil {
if err := cmd.setupLoftPlatformAccess(ctx, containerClient, workspaceClient.Context(), workspaceClient.Provider(), log); err != nil {
log.Error(err)
}
}()
Expand Down

0 comments on commit 570bb4a

Please sign in to comment.