Skip to content

Commit

Permalink
Merge pull request #17735 from cgwalters/gather-console
Browse files Browse the repository at this point in the history
gather/aws-console: Make log gathering non-fatal
  • Loading branch information
openshift-merge-robot committed Apr 14, 2021
2 parents 58874e8 + d060927 commit 3e6838b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ 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}" &
wait "$!"
aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" || echo "Failed to gather console logs"
done

0 comments on commit 3e6838b

Please sign in to comment.