Merge "Suppress errors when ara is not installed"

This commit is contained in:
Zuul 2020-05-10 15:54:40 +00:00 committed by Gerrit Code Review
commit 2c4b771002

View File

@ -43,7 +43,7 @@ if [[ "${PWD}" == *"${OSA_CLONE_ROOT}"* ]] || [ "${RUN_CMD}" == "openstack-ansib
# Load ARA into callback plugins if it is installed
# Dynamically retrieve the location of the ARA callback so we are able to find
# it on both py2 and py3
ara_location=$(python -m ara.setup.callback_plugins || true)
ara_location=$(python -m ara.setup.callback_plugins 2>/dev/null || true)
if [[ -n "$ara_location" ]]; then
export ANSIBLE_CALLBACK_PLUGINS="${ANSIBLE_CALLBACK_PLUGINS}:${ara_location}"
fi