Skip to content

Commit

Permalink
Merge pull request #542 from Scalingo/fix/one-stop-shop-64/abort
Browse files Browse the repository at this point in the history
Display command to aboart the migration just after migration-create
  • Loading branch information
Soulou authored Apr 1, 2020
2 parents 7c31734 + 8d3c9af commit a80e7e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions region_migrations/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ func showMigrationStatusFailed(appId string, migration scalingo.RegionMigration,
}

func showMigrationStatusPreflightSuccess(appId string, migration scalingo.RegionMigration) {
fmt.Printf("Your app can be migrated to the %s zone.\n", migration.Destination)
fmt.Printf("To start the migration launch:\n\n")
fmt.Printf("Your app can be migrated to the %s zone.\n\n", migration.Destination)
fmt.Printf("- Start the migration with:\n")
fmt.Printf("scalingo --region %s --app %s migration-run --prepare %s\n", migration.Source, appId, migration.ID)
fmt.Printf("- Abort the migration with:\n")
fmt.Printf("scalingo --region %s --app %s migration-abort %s\n", migration.Source, appId, migration.ID)
}

func showMigrationStatusPrepared(appId string, migration scalingo.RegionMigration) {
Expand Down

0 comments on commit a80e7e9

Please sign in to comment.