Skip to content

Commit

Permalink
fix single line migration report (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin authored Nov 2, 2023
1 parent cd3e201 commit 8966ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/commands/migration/migration_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ func fetchMigrationReport(ctx context.Context, ci *hazelcast.ClientInternal, mig
if err != nil {
return "", fmt.Errorf("migration report cannot be found: %w", err)
}
return strings.ReplaceAll(string(r.(serialization.JSON)), `\"`, ``), nil
var t string
json.Unmarshal(r.(serialization.JSON), &t)
return t, nil
}

func fetchMigrationErrors(ctx context.Context, ci *hazelcast.ClientInternal, migrationID string) (string, error) {
Expand Down

0 comments on commit 8966ce1

Please sign in to comment.