Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
The "args" variable must be set in any case, or the "tpaexec" bash
script will error out for users having "set -u" in their environment.

Signed-off-by: Gianni Ciolli <[email protected]>

Co-authored-by: Jonathan Renon <[email protected]>
  • Loading branch information
gcedb and JonathanRenon-EDB committed Jun 10, 2024
1 parent 9b4c982 commit c75cf7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/tpaexec
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ cmd() {
fi
# first ensure that vault_pass is defined for the cluster
# otherwise don't add it to the args
args=""
if "${TPA_DIR}/architectures/lib/use-vault" >> /dev/null 2>&1; then
args=--vault-password-file="${TPA_DIR}/architectures/lib/use-vault"
fi
Expand Down

0 comments on commit c75cf7c

Please sign in to comment.