Skip to content

Commit

Permalink
fix PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Nov 15, 2023
1 parent 81fa149 commit b439ab9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions base/commands/migration/migration_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,20 @@ func (s StatusCmd) Exec(ctx context.Context, ec plug.ExecContext) (err error) {
ec.PrintlnUnnecessary("")
ec.PrintlnUnnecessary(banner)
sts := NewStatusStages()
sp := stage.NewFixedProvider(sts.Build(ctx, ec)...)
mID, err := stage.Execute(ctx, ec, any(nil), sp)
mID, err := stage.Execute(ctx, ec, "", stage.NewFixedProvider(sts.Build(ctx, ec)...))
if err != nil {
return err
}
defer func() {
if sts.ci != nil {
maybePrintWarnings(ctx, ec, sts.ci, mID.(string))
finalizeErr := finalizeMigration(ctx, ec, sts.ci, mID.(string), ec.Props().GetString(flagOutputDir))
maybePrintWarnings(ctx, ec, sts.ci, mID)
finalizeErr := finalizeMigration(ctx, ec, sts.ci, mID, ec.Props().GetString(flagOutputDir))
if err == nil {
err = finalizeErr
}
}
}()
mStages, err := createMigrationStages(ctx, ec, sts.ci, mID.(string))
mStages, err := createMigrationStages(ctx, ec, sts.ci, mID)
if err != nil {
return err
}
Expand Down

0 comments on commit b439ab9

Please sign in to comment.