Skip to content

Commit

Permalink
append object, don't replace
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunMaher committed Oct 11, 2023
1 parent 382fe0a commit ec8cee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooling/run_syncoid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec8cee2

Please sign in to comment.