summaryrefslogtreecommitdiffstats
path: root/lib/container
diff options
context:
space:
mode:
Diffstat (limited to 'lib/container')
-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}"