Skip to content

Commit

Permalink
Merge pull request #19827 from wking/gather-aws-console-encoding
Browse files Browse the repository at this point in the history
ci-operator/step-registry/gather/aws-console: UTF-8 for output
  • Loading branch information
openshift-merge-robot committed Jun 29, 2021
2 parents ddf0b12 + 24b834c commit 1aefdea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ REGION="$(jq -r .aws.region "${SHARED_DIR}/metadata.json")"
cat "${TMPDIR}/node-provider-IDs.txt" | sort | uniq | while read -r INSTANCE_ID
do
echo "Gathering console logs for ${INSTANCE_ID}"
aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" || echo "Failed to gather console logs"
PYTHONIOENCODING=UTF-8:backslashreplace aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" &
wait "$!"
done

0 comments on commit 1aefdea

Please sign in to comment.