@@ -253,6 +253,8 @@ func removeGitIntegrations(ctx context.Context, opts *RuntimeUninstallOptions) e
253
253
}
254
254
}
255
255
256
+ log .G (ctx ).Info ("Removed runtime git integrations" )
257
+
256
258
return nil
257
259
}
258
260
@@ -496,23 +498,23 @@ func runRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) err
496
498
497
499
log .G (ctx ).Infof ("Uninstalling runtime \" %s\" - this process may take a few minutes..." , opts .RuntimeName )
498
500
499
- err = removeGitIntegrations (ctx , opts )
501
+ err = removeRuntimeIsc (ctx , opts . RuntimeName )
500
502
if opts .Force {
501
503
err = nil
502
504
}
503
- handleCliStep (reporter .UninstallStepRemoveGitIntegrations , "Removing git integrations " , err , false , true )
505
+ handleCliStep (reporter .UninstallStepRemoveRuntimeIsc , "Removing runtime ISC " , err , false , true )
504
506
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 )
507
508
}
508
509
509
- err = removeRuntimeIsc (ctx , opts . RuntimeName )
510
+ err = removeGitIntegrations (ctx , opts )
510
511
if opts .Force {
511
512
err = nil
512
513
}
513
- handleCliStep (reporter .UninstallStepRemoveRuntimeIsc , "Removing runtime ISC " , err , false , true )
514
+ handleCliStep (reporter .UninstallStepRemoveGitIntegrations , "Removing git integrations " , err , false , true )
514
515
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
516
518
}
517
519
518
520
if ! opts .skipAutopilotUninstall {
@@ -545,7 +547,7 @@ func runRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) err
545
547
return err
546
548
}
547
549
548
- log .G (ctx ).Infof ("Deleting runtime '%s' from platform" , opts .RuntimeName )
550
+ log .G (ctx ).Infof ("Deleting runtime \" %s \" from platform" , opts .RuntimeName )
549
551
if opts .Managed {
550
552
_ , err = cfConfig .NewClient ().V2 ().Runtime ().DeleteManaged (ctx , opts .RuntimeName )
551
553
} else {
0 commit comments