diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-06 19:45:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-12 07:47:19 +0000 |
commit | 7f7ffcf75e9709af7ba548c7fdf82fc9c4561ea9 (patch) | |
tree | 90660bf43654db55e3edfbc2e6989ece75f5445a | |
parent | Updating development section in container-tools manpage. (diff) | |
download | compute-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>
-rwxr-xr-x | lib/container/list | 2 |
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)" |