@@ -253,6 +253,8 @@ func removeGitIntegrations(ctx context.Context, opts *RuntimeUninstallOptions) e
253253 }
254254 }
255255
256+ log .G (ctx ).Info ("Removed runtime git integrations" )
257+
256258 return nil
257259}
258260
@@ -496,23 +498,23 @@ func runRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) err
496498
497499 log .G (ctx ).Infof ("Uninstalling runtime \" %s\" - this process may take a few minutes..." , opts .RuntimeName )
498500
499- err = removeGitIntegrations (ctx , opts )
501+ err = removeRuntimeIsc (ctx , opts . RuntimeName )
500502 if opts .Force {
501503 err = nil
502504 }
503- handleCliStep (reporter .UninstallStepRemoveGitIntegrations , "Removing git integrations " , err , false , true )
505+ handleCliStep (reporter .UninstallStepRemoveRuntimeIsc , "Removing runtime ISC " , err , false , true )
504506 if err != nil {
505- summaryArr = append (summaryArr , summaryLog {"you can attempt to uninstall again with the \" --force\" flag" , Info })
506- return err
507+ return fmt .Errorf ("failed to remove runtime isc: %w" , err )
507508 }
508509
509- err = removeRuntimeIsc (ctx , opts . RuntimeName )
510+ err = removeGitIntegrations (ctx , opts )
510511 if opts .Force {
511512 err = nil
512513 }
513- handleCliStep (reporter .UninstallStepRemoveRuntimeIsc , "Removing runtime ISC " , err , false , true )
514+ handleCliStep (reporter .UninstallStepRemoveGitIntegrations , "Removing git integrations " , err , false , true )
514515 if err != nil {
515- return fmt .Errorf ("failed to remove runtime isc: %w" , err )
516+ summaryArr = append (summaryArr , summaryLog {"you can attempt to uninstall again with the \" --force\" flag" , Info })
517+ return err
516518 }
517519
518520 if ! opts .skipAutopilotUninstall {
@@ -545,7 +547,7 @@ func runRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) err
545547 return err
546548 }
547549
548- log .G (ctx ).Infof ("Deleting runtime '%s' from platform" , opts .RuntimeName )
550+ log .G (ctx ).Infof ("Deleting runtime \" %s \" from platform" , opts .RuntimeName )
549551 if opts .Managed {
550552 _ , err = cfConfig .NewClient ().V2 ().Runtime ().DeleteManaged (ctx , opts .RuntimeName )
551553 } else {
0 commit comments