Merge "Correct reproducer dependency detection and adds missing git"

This commit is contained in:
Zuul 2019-01-24 14:48:27 +00:00 committed by Gerrit Code Review
commit a0750a48a2

View File

@ -167,14 +167,16 @@ function check_installed {
if ! which $binary >/dev/null ; then if ! which $binary >/dev/null ; then
echo "Error: Could not find required binary $binary. Ensure you have echo "Error: Could not find required binary $binary. Ensure you have
it installed before trying again." it installed before trying again."
exit 1 return 1
fi fi
} }
BOOTSTRAP_DEPENDENCIES=("virtualenv" "ansible" "pip" "openstack" "heat") BOOTSTRAP_DEPENDENCIES=("git" "virtualenv" "ansible" "pip" "openstack" "heat")
function check_bootstrap_dependencies { function check_bootstrap_dependencies {
status=0
for dependency in ${BOOTSTRAP_DEPENDENCIES[@]} ; do for dependency in ${BOOTSTRAP_DEPENDENCIES[@]} ; do
check_installed $dependency check_installed $dependency || status=1
done done
return $status
} }
# Check that tenant credentials have been sourced # Check that tenant credentials have been sourced