diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-05-06 11:38:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-05-06 12:35:49 +0000 |
commit | 34e0182023c8f97c6ac3339b61c02613255e99fa (patch) | |
tree | d11e8ce826663071e599c585b9eba47b84bb5160 /lib | |
parent | Adding short and full list format to container list command. (diff) | |
download | compute-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 'lib')
-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 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 |