From ec8cee2c7c5f0b15be267d3875ab5898da4af3f6 Mon Sep 17 00:00:00 2001 From: Shaun Maher Date: Wed, 11 Oct 2023 04:33:12 +0000 Subject: [PATCH] append object, don't replace --- tooling/run_syncoid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/run_syncoid.sh b/tooling/run_syncoid.sh index a0d85ae..6d52c52 100755 --- a/tooling/run_syncoid.sh +++ b/tooling/run_syncoid.sh @@ -84,7 +84,7 @@ result_json=$(printf '%s' "${result_json}" | jq ".error_count=${error_count}") error_out_of_space=$(cat "${syncoid_log}" | grep -c "out of space") result_json=$(printf '%s' "${result_json}" | jq ".commonIssues={destinationOutOfSpace:${error_out_of_space}}") error_connection_refused=$(cat "${syncoid_log}" | grep -c 'ssh: connect to host chisel port.*Connection refused') -result_json=$(printf '%s' "${result_json}" | jq ".commonIssues={connectionToSourceRefused:${error_connection_refused}}") +result_json=$(printf '%s' "${result_json}" | jq ".commonIssues.connectionToSourceRefused=${error_connection_refused}}") printf '%s' "${result_json}" | jq -C printf '%s' "${result_json}" > backup_result.json \ No newline at end of file