Skip to content

Commit

Permalink
fix(cli): resolve provider options after auto-upgrade in pro
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Nov 13, 2024
1 parent d5276eb commit 7057d5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/pro/update_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/loft-sh/devpod/cmd/pro/flags"
providercmd "github.com/loft-sh/devpod/cmd/provider"
"github.com/loft-sh/devpod/pkg/config"
"github.com/loft-sh/devpod/pkg/platform"
"github.com/loft-sh/devpod/pkg/workspace"
Expand Down Expand Up @@ -73,5 +74,10 @@ func (cmd *UpdateProviderCmd) Run(ctx context.Context, args []string) error {
return fmt.Errorf("update provider %s: %w", provider.Name, err)
}

err = providercmd.ConfigureProvider(ctx, provider, devPodConfig.DefaultContext, []string{}, false, false, nil, log.Discard)
if err != nil {
return fmt.Errorf("configure provider, please retry with 'devpod provider use %s --reconfigure': %w", provider.Name, err)
}

return nil
}

0 comments on commit 7057d5f

Please sign in to comment.