summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-06 19:45:30 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-11 13:16:08 +0000
commitf8593412562e81c14f07d544270b0ee7236c2bce (patch)
tree2d6ca3d0a058e2f61ec001a3a6e54fc3decbcef4 /lib
parentUpdating development section in readme file. (diff)
downloadcompute-tools-f8593412562e81c14f07d544270b0ee7236c2bce.tar.xz
compute-tools-f8593412562e81c14f07d544270b0ee7236c2bce.zip
Avoid repeating ipv4 address of the previous container in container list command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/list2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/container/list b/lib/container/list
index d522623..0bfc69d 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -183,6 +183,8 @@ do
;;
esac
+ ADDRESS=""
+
if [ -e "${MACHINES}/${CONTAINER}/etc/network/interfaces" ]
then
ADDRESSES="$(awk '/address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/network/interfaces)"