summaryrefslogtreecommitdiffstats
path: root/lib/container/list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-11-04 06:06:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-11-04 06:07:41 +0000
commit213313c109c5551473da36a85ceb56bdf1162628 (patch)
tree36b6bef13e2080d6af1c5a6fa4ed4ceb118ff742 /lib/container/list
parentReleasing debian version 20190811-1. (diff)
downloadopen-infrastructure-compute-tools-213313c109c5551473da36a85ceb56bdf1162628.tar.xz
open-infrastructure-compute-tools-213313c109c5551473da36a85ceb56bdf1162628.zip
Merging upstream version 20191104.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/container/list')
-rwxr-xr-xlib/container/list2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/list b/lib/container/list
index 6b0d771..5427c90 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -367,7 +367,7 @@ do
if ls "${MACHINES}/${CONTAINER}/etc/systemd/network"/*.network > /dev/null 2>&1
then
- ADDRESS="$(awk -F= '/Address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/systemd/network/*.network | head -n1)"
+ ADDRESS="$(awk -F= '/^Address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/systemd/network/*.network | head -n1)"
elif [ -e "${MACHINES}/${CONTAINER}/etc/network/interfaces" ]
then
ADDRESS="$(awk '/address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/network/interfaces | head -n1)"