diff --git a/ci-operator/step-registry/gather/aws-console/gather-aws-console-commands.sh b/ci-operator/step-registry/gather/aws-console/gather-aws-console-commands.sh index 1cd70da0d1ed..c9bdf67b066a 100755 --- a/ci-operator/step-registry/gather/aws-console/gather-aws-console-commands.sh +++ b/ci-operator/step-registry/gather/aws-console/gather-aws-console-commands.sh @@ -37,6 +37,6 @@ REGION="$(jq -r .aws.region "${SHARED_DIR}/metadata.json")" cat "${TMPDIR}/node-provider-IDs.txt" | sort | grep . | uniq | while read -r INSTANCE_ID do echo "Gathering console logs for ${INSTANCE_ID}" - PYTHONIOENCODING=UTF-8:backslashreplace aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" & + LC_ALL=en_US.UTF-8 aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" & wait "$!" done