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-12-11 13:16:08 +0000 |
commit | f8593412562e81c14f07d544270b0ee7236c2bce (patch) | |
tree | 2d6ca3d0a058e2f61ec001a3a6e54fc3decbcef4 /lib/container | |
parent | Updating development section in readme file. (diff) | |
download | compute-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 'lib/container')
-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 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)" |