From 7f7ffcf75e9709af7ba548c7fdf82fc9c4561ea9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 6 Nov 2016 20:45:30 +0100 Subject: Avoid repeating ipv4 address of the previous container in container list command. Signed-off-by: Daniel Baumann --- lib/container/list | 2 ++ 1 file changed, 2 insertions(+) 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)" -- cgit v1.2.3