summaryrefslogtreecommitdiffstats
path: root/lib/container/list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:08:15 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:08:15 +0000
commita5f1d3aeea5033f26aa2a9ffbbe623522f83259b (patch)
treea5b06407133d44576975d8b829ba23d56eef6430 /lib/container/list
parentCompleting cleanup of directories in makefile uninstall target. (diff)
downloadcompute-tools-a5f1d3aeea5033f26aa2a9ffbbe623522f83259b.tar.xz
compute-tools-a5f1d3aeea5033f26aa2a9ffbbe623522f83259b.zip
Silencing error message in container list command if machine directory is not readable.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/list2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/list b/lib/container/list
index 8b55e09..e1e3855 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -104,7 +104,7 @@ EOF
;;
esac
-CONTAINERS="$(cd "${MACHINES}" && find -maxdepth 1 -type d -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
+CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
for CONTAINER in ${CONTAINERS}
do