summaryrefslogtreecommitdiffstats
path: root/lib/container
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-12-21 09:22:28 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-12-21 09:22:28 +0000
commit80bbc251566e653d70a4fea45133b61edfda784c (patch)
tree988b1971b821ae10989abf4838cd9cda42f618ad /lib/container
parentAdding upstream version 20161210. (diff)
downloadopen-infrastructure-compute-tools-80bbc251566e653d70a4fea45133b61edfda784c.tar.xz
open-infrastructure-compute-tools-80bbc251566e653d70a4fea45133b61edfda784c.zip
Adding upstream version 20161220.upstream/20161220
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rwxr-xr-xlib/container/list14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/container/list b/lib/container/list
index f9f46fb..da8a158 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -318,7 +318,10 @@ EOF
;;
esac
-CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name '.container-tools' -and -not -name 'container-tools' -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
+if ls "${MACHINES}"/* > /dev/null 2>&1
+then
+ CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name '.container-tools' -and -not -name 'container-tools' -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
+fi
for CONTAINER in ${CONTAINERS}
do
@@ -405,6 +408,15 @@ EOF
;;
+ nwdiag)
+
+cat << EOF
+ }
+}
+EOF
+
+ ;;
+
xml)
cat << EOF