Skip to content

Commit

Permalink
a/ci-operator/templates/openshift/installer/cluster-launch-installer-…
Browse files Browse the repository at this point in the history
…e2e: Set AWS_DEFAULT_REGION

The command prefers that form [1], and doesn't work with AWS_REGION
[2].

[1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
[2]: #6189 (comment)
  • Loading branch information
wking committed Dec 5, 2019
1 parent 13538fe commit 26fde70
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -828,7 +828,8 @@ objects:
export PATH="${HOME}/.local/bin:${PATH}"
easy_install --user pip # our Python 2.7.5 is even too old for ensurepip
pip install --user awscli
export AWS_REGION="$(python -c 'import json; data = json.load(open("/tmp/artifacts/installer/metadata.json")); print(data["aws"]["region"])')"
export AWS_DEFAULT_REGION="$(python -c 'import json; data = json.load(open("/tmp/artifacts/installer/metadata.json")); print(data["aws"]["region"])')"
echo "gathering node console output from ${AWS_DEFAULT_REGION}"
fi
while IFS= read -r i; do
Expand Down

0 comments on commit 26fde70

Please sign in to comment.