diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-10-30 04:13:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-10-30 04:13:09 +0000 |
commit | 95981ad90a2c53a07e146ad68bf4c15ab448aa09 (patch) | |
tree | bd2d683d160728a67a191fe3b87c8acda10587a1 /lib/container/list | |
parent | Releasing debian version 20200830-1. (diff) | |
download | open-infrastructure-compute-tools-95981ad90a2c53a07e146ad68bf4c15ab448aa09.tar.xz open-infrastructure-compute-tools-95981ad90a2c53a07e146ad68bf4c15ab448aa09.zip |
Merging upstream version 20201030.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/container/list')
-rwxr-xr-x | lib/container/list | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/container/list b/lib/container/list index 24457de..cf7b148 100755 --- a/lib/container/list +++ b/lib/container/list @@ -328,11 +328,11 @@ fi for CONTAINER in ${CONTAINERS} do - STATE="$(machinectl show ${CONTAINER} 2>&1 | awk -F= '/^State=/ { print $2 }')" + STATE="$(machinectl show ${CONTAINER} 2>&1 | awk -FState= '/^State=/ { print $2 }')" if [ -e "${CONFIG}/${CONTAINER}.conf" ] then - CONTAINER_SERVER="$(awk -F= '/^cnt.container-server=/ { print $2 }' ${CONFIG}/${CONTAINER}.conf)" + CONTAINER_SERVER="$(awk -Fcnt.container-server= '/^cnt.container-server=/ { print $2 }' ${CONFIG}/${CONTAINER}.conf)" CONTAINER_SERVER="${CONTAINER_SERVER:-false}" case "${CONTAINER_SERVER}" in @@ -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 -FAddress= '/^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)" |