Skip to content

Commit

Permalink
fix(cli): only delete local workspaces when removing provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Nov 18, 2024
1 parent 37e66ce commit 57ae622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/provider/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (cmd *DeleteCmd) Run(ctx context.Context, args []string) error {

func DeleteProvider(ctx context.Context, devPodConfig *config.Config, provider string, ignoreNotFound bool, cleanup bool, log logpkg.Logger) error {
// check if there are workspaces that still use this provider
workspaces, err := workspace.List(ctx, devPodConfig, false, log)
workspaces, err := workspace.List(ctx, devPodConfig, true, log)
if err != nil {
return err
}
Expand Down

0 comments on commit 57ae622

Please sign in to comment.