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
This commit is contained in:
parent
0673e98539
commit
4d8d678240
@ -453,7 +453,7 @@ EOF
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
GLOBALS_DIR="${CONFIG_DIR}/globals.d"
|
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}"
|
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"
|
CMD="ansible-playbook -i $INVENTORY $CONFIG_OPTS $EXTRA_OPTS $PLAYBOOK $VERBOSITY"
|
||||||
process_cmd
|
process_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user