summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-04-30 14:25:03 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-04-30 21:56:26 +0000
commit2fd419183750c5a1e62ce67dd8e0ca26bb41b7e9 (patch)
tree4e972a37814a66f6f2ffc02f26faea3b92ecd301 /libexec
parentActually passing through SSH_CLIENT variable to enable powerline-prompt in co... (diff)
downloadcompute-tools-2fd419183750c5a1e62ce67dd8e0ca26bb41b7e9.tar.xz
compute-tools-2fd419183750c5a1e62ce67dd8e0ca26bb41b7e9.zip
Listing all IP addresses in container list command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/list2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/container/list b/libexec/container/list
index c112cc8..2600bab 100755
--- a/libexec/container/list
+++ b/libexec/container/list
@@ -377,7 +377,7 @@ do
*)
LEADER="$(machinectl status ${CONTAINER} | awk '/Leader: / { print $2 }')"
- ADDRESS="$(nsenter --all --target "${LEADER}" /bin/hostname -I | sed -e 's|\r$||' | awk '{ print $1 }')"
+ ADDRESS="$(nsenter --all --target "${LEADER}" /bin/hostname -I)"
;;
esac