Skip to content

Commit

Permalink
add flag for output dir of report file
Browse files Browse the repository at this point in the history
  • Loading branch information
kmetin committed Sep 18, 2023
1 parent 243f7b1 commit db210e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/commands/migration/start_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (st *StartStages) handleUpdateMessage(ctx context.Context, ec plug.ExecCont
ec.PrintlnUnnecessary(ms.Report)
var name string
if st.reportOutputDir == "" {
name = fmt.Sprintf("migration_report_%s", st.migrationID)
name = fmt.Sprintf("migration_report_%s.txt", st.migrationID)
}
if err = saveReportToFile(name, ms.Report); err != nil {
return true, fmt.Errorf("writing report to file: %w", err)
Expand Down

0 comments on commit db210e3

Please sign in to comment.