summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:09:23 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:09:23 +0000
commita200b063eda691de6c9c507bede6b38ef6708679 (patch)
tree1292045a4ffd7e907f62bfe3719228ffdc0e968f
parentCorrecting limit manpage namespace. (diff)
downloadcompute-tools-a200b063eda691de6c9c507bede6b38ef6708679.tar.xz
compute-tools-a200b063eda691de6c9c507bede6b38ef6708679.zip
Correcting container list command to list container without IP adresses.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xlib/container/list4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/container/list b/lib/container/list
index 6c932d5..62b9b3a 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -119,10 +119,10 @@ do
if [ -e "${MACHINES}/${CONTAINER}/etc/network/interfaces" ]
then
ADDRESSES="$(awk '/address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/network/interfaces)"
- else
- ADDRESSES="n/a"
fi
+ ADDRESSES="${ADDRESSES:-n/a}"
+
case "${STATE}" in
running)
STATUS="${GREEN}started${NORMAL}"