summaryrefslogtreecommitdiffstats
path: root/lib/container
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-06 11:38:35 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-06 12:35:49 +0000
commit34e0182023c8f97c6ac3339b61c02613255e99fa (patch)
treed11e8ce826663071e599c585b9eba47b84bb5160 /lib/container
parentAdding short and full list format to container list command. (diff)
downloadcompute-tools-34e0182023c8f97c6ac3339b61c02613255e99fa.tar.xz
compute-tools-34e0182023c8f97c6ac3339b61c02613255e99fa.zip
Excluding snapshot directories for cephfs and netapp in container list command.
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 e9e3305..5ab5755 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' -printf '%P\n' | sort)"
+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)"
for CONTAINER in ${CONTAINERS}
do