Merge "Fail kolla-ansible early when not available in the PYTHONPATH"

This commit is contained in:
Zuul 2019-10-30 16:56:52 +00:00 committed by Gerrit Code Review
commit 1932679987

View File

@ -120,6 +120,11 @@ LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,config
RAW_ARGS="$*"
ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; }
python -c 'import kolla_ansible' &>/dev/null || (
echo "ERROR: kolla_ansible has to be available in the PYTHONPATH (e.g. installed)" >&2
exit 1
)
eval set -- "$ARGS"
find_base_dir