Merge pull request #210 from squaremo/remove_redundant_shellfunc

Remove redundant shell function
This commit is contained in:
rade committed 2014-11-20 14:46:14 +00:00
commit 2f47dbddae
1 file changed
-11
-11
View File
@@ -139,17 +139,6 @@ destroy_bridge() {
run_iptables -t nat -X WEAVE >/dev/null 2>&1 || true
}
docker_ip() {
if ! DOCKERIP=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' $CONTAINER_NAME 2>/dev/null) ; then
echo "Weave is not running." >&2
exit 1
fi
if [ -z "$DOCKERIP" ] ; then
echo "Weave is not running." >&2
exit 1
fi
}
# the following borrows from https://github.com/jpetazzo/pipework
# run args $2 $3 ... as a command in the network namespace of container $1