From 4d8d678240ab20db773095d60244e9adbf464251 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 29 Jun 2020 14:11:05 +0100 Subject: [PATCH] Fix unexpected message without globals.d Recently a feature was merged to support pulling in multiple configuration files from a globals.d directory. However, if this directory does not exist, we get the following error when executing kolla-ansible: find: '/etc/kolla/globals.d': No such file or directory This change addresses this by redirecting find command stderr to /dev/null. TrivialFix Change-Id: Ie5aa511a5ebf3355817a7c3bb65b09ac5dcf2b67 --- tools/kolla-ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kolla-ansible b/tools/kolla-ansible index fca10ea717..8221c15cb0 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -453,7 +453,7 @@ EOF esac GLOBALS_DIR="${CONFIG_DIR}/globals.d" -EXTRA_GLOBALS=$(find ${GLOBALS_DIR} -maxdepth 1 -type f -name '*.yml' -printf ' -e @%p') +EXTRA_GLOBALS=$(find ${GLOBALS_DIR} -maxdepth 1 -type f -name '*.yml' -printf ' -e @%p' 2>/dev/null) CONFIG_OPTS="-e @${CONFIG_DIR}/globals.yml ${EXTRA_GLOBALS} -e @${PASSWORDS_FILE} -e CONFIG_DIR=${CONFIG_DIR}" CMD="ansible-playbook -i $INVENTORY $CONFIG_OPTS $EXTRA_OPTS $PLAYBOOK $VERBOSITY" process_cmd