From 51631a5e336b4a24057d735789e926862022338a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 4 May 2020 15:00:57 +0300 Subject: [PATCH] Suppress errors when ara is not installed Change-Id: I09c5b790f86ae5a5504193b5dadc75c90770367d --- scripts/openstack-ansible.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openstack-ansible.sh b/scripts/openstack-ansible.sh index 142167da0d..ede218d30a 100644 --- a/scripts/openstack-ansible.sh +++ b/scripts/openstack-ansible.sh @@ -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