diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-06-14 19:08:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-06-14 19:08:15 +0000 |
commit | a5f1d3aeea5033f26aa2a9ffbbe623522f83259b (patch) | |
tree | a5b06407133d44576975d8b829ba23d56eef6430 /lib/container/list | |
parent | Completing cleanup of directories in makefile uninstall target. (diff) | |
download | compute-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-x | lib/container/list | 2 |
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 |