Skip to content

Commit d1b4c0f

Browse files
author
Your Name
committed
Add support for defining the openrc file as an environment variable
1 parent 8fa4637 commit d1b4c0f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/rally-verify-wrapper.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ fi
5050

5151
# Don't print secrets
5252
set +x
53-
. ~/openrc
53+
if [ -f ~/openrc ]; then
54+
. ~/openrc
55+
elif [ ! -z ${TEMPEST_OPENRC:+x} ]; then
56+
. <(echo "$TEMPEST_OPENRC")
57+
else
58+
>&2 echo "Could not find openrc file. Please define TEMPEST_OPENRC or copy the file to ~/openrc."
59+
exit -1
60+
fi
5461
set -x
5562

5663
unset OS_CACERT

0 commit comments

Comments
 (0)