From c7ca47c49547924e4969a62385ddd0997d86c2e4 Mon Sep 17 00:00:00 2001 From: kmetin Date: Mon, 30 Oct 2023 17:46:20 +0300 Subject: [PATCH] fix single line migration report --- base/commands/migration/migration_stages.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/commands/migration/migration_stages.go b/base/commands/migration/migration_stages.go index 685041df..18a3b9d9 100644 --- a/base/commands/migration/migration_stages.go +++ b/base/commands/migration/migration_stages.go @@ -231,7 +231,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) {