summaryrefslogtreecommitdiffstats
path: root/lib/container/list
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-11-12 07:47:19 +0000
commit7f7ffcf75e9709af7ba548c7fdf82fc9c4561ea9 (patch)
tree90660bf43654db55e3edfbc2e6989ece75f5445a /lib/container/list
parentUpdating development section in container-tools manpage. (diff)
downloadcompute-tools-7f7ffcf75e9709af7ba548c7fdf82fc9c4561ea9.tar.xz
compute-tools-7f7ffcf75e9709af7ba548c7fdf82fc9c4561ea9.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 'lib/container/list')
-rwxr-xr-xlib/container/list2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/container/list b/lib/container/list
index e5e76fe..f0c49ee 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -183,6 +183,8 @@ do
;;
esac
+ ADDRESSES=""
+
if ls "${MACHINES}/${CONTAINER}/etc/systemd/network"/*.network > /dev/null 2>&1
then
ADDRESSES="$(awk -F= '/Address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/systemd/network/*.network)"