Skip to content
Snippets Groups Projects
Commit 19326799 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

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

parents 98520827 af7305f2
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,11 @@ LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,config ...@@ -120,6 +120,11 @@ LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,config
RAW_ARGS="$*" RAW_ARGS="$*"
ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; } 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" eval set -- "$ARGS"
find_base_dir find_base_dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment