Clean up NFS unmount during unstack

Don't run umount run if no shares are mounted, which
reduces umount noise.

Change-Id: Ib062afbdbc2ae0ff773741e29402eb13a925d40e
This commit is contained in:
Eric Harney 2019-10-11 10:40:21 -04:00
parent 73b8b0842e
commit 0151149833
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ if [[ "$1" == "unstack" ]]; then
# Unmount any NFS shares mounted by Cinder
if [[ -d ${DATA_DIR}/cinder/mnt ]]; then
find ${DATA_DIR}/cinder/mnt -mindepth 1 -maxdepth 1 -type d \
| sudo xargs umount -l
| sudo xargs --no-run-if-empty umount -l
fi
sudo rm -f ${STACK_NFS_CONF}