Skip to content

Commit

Permalink
exit 1 if we can't generate creds using AWS_ROLE_ARN
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Oct 27, 2024
1 parent b0dbf4f commit cfd41d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/src/utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devcontainer-utils",
"id": "utils",
"version": "24.12.1",
"version": "24.12.2",
"description": "A feature to install RAPIDS devcontainer utility scripts",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ _creds_s3_generate() {
if test -n "${AWS_ROLE_ARN:-}" && gh nv-gha-aws --help >/dev/null 2>&1; then
# shellcheck disable=SC1091
devcontainer-utils-creds-s3-gh-generate;
elif test -n "${VAULT_HOST}"; then
elif test -n "${VAULT_HOST:-}"; then
# shellcheck disable=SC1091
devcontainer-utils-creds-s3-vault-generate;
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ _creds_github_generate() {
fi
done
exit 1;
}
_creds_github_generate "$@" <&0;

0 comments on commit cfd41d6

Please sign in to comment.