get rid of a silly redirect

This commit is contained in:
Matthias Radestock committed 2015-05-20 16:54:07 +01:00
1 parent c63d2e531a
commit 6f68eb50aa
1 file changed
+1 -1
+1 -1
View File
@@ -545,7 +545,7 @@ with_container_addresses() {
else
ADDRS_CMD="with_container_netns $CONTAINER_ID container_weave_addrs"
fi
if CONTAINER_ADDRS=$($ADDRS_CMD 2>&1) ; then
if CONTAINER_ADDRS=$($ADDRS_CMD 2>/dev/null) ; then
CONTAINER_MAC=$(echo "$CONTAINER_ADDRS" | grep -o 'link/ether .*' | cut -d ' ' -f 2)
CONTAINER_IPS=$(echo "$CONTAINER_ADDRS" | grep -o 'inet .*' | cut -d ' ' -f 2)
$COMMAND "$CONTAINER_ID" "$CONTAINER_MAC" "$CONTAINER_IPS"