diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-06-14 19:09:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-06-14 19:09:23 +0000 |
commit | a200b063eda691de6c9c507bede6b38ef6708679 (patch) | |
tree | 1292045a4ffd7e907f62bfe3719228ffdc0e968f /lib | |
parent | Correcting limit manpage namespace. (diff) | |
download | compute-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>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/container/list | 4 |
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}" |