Skip to content

Commit c1a9ca7

Browse files
committed
fix(config): fix deletion of profiles on some systems
relates to STACKITCLI-389
1 parent 47f322d commit c1a9ca7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/cmd/config/profile/delete/delete.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
7171
return err
7272
}
7373

74-
err = config.DeleteProfile(params.Printer, model.Profile)
74+
err = auth.DeleteProfileAuth(model.Profile)
7575
if err != nil {
76-
return fmt.Errorf("delete profile: %w", err)
76+
return fmt.Errorf("delete profile authentication: %w", err)
7777
}
7878

79-
err = auth.DeleteProfileAuth(model.Profile)
79+
err = config.DeleteProfile(params.Printer, model.Profile)
8080
if err != nil {
81-
return fmt.Errorf("delete profile authentication: %w", err)
81+
return fmt.Errorf("delete profile: %w", err)
8282
}
8383

8484
params.Printer.Info("Successfully deleted profile %q\n", model.Profile)

0 commit comments

Comments
 (0)