tiny refactor: outdent

This commit is contained in:
Matthias Radestock committed 2015-05-16 02:50:02 +01:00
1 parent 47727e23f1
commit dbcdace361
1 file changed
+3 -2
+3 -2
View File
@@ -651,7 +651,9 @@ ipam_claim() {
# If we don't already have any CIDRs passed from the command-line, get one from IPAM # If we don't already have any CIDRs passed from the command-line, get one from IPAM
# $1 is the name of the container and $2, if set, is the ID to use inside IPAM # $1 is the name of the container and $2, if set, is the ID to use inside IPAM
get_ipam_cidr() { get_ipam_cidr() {
if [ -z "$CIDR_ARGS" ] ; then if [ -n "$CIDR_ARGS" ] ; then
return 0
fi
if [ -z "$2" ] ; then if [ -z "$2" ] ; then
# get the long form of the container ID # get the long form of the container ID
if ! status=$(docker inspect --format='{{.State.Running}} {{.Id}}' $1 2>/dev/null); then if ! status=$(docker inspect --format='{{.State.Running}} {{.Id}}' $1 2>/dev/null); then
@@ -675,7 +677,6 @@ get_ipam_cidr() {
echo "No IP address supplied (use the -iprange option on 'weave launch'\nto enable IP allocation)" >&2 echo "No IP address supplied (use the -iprange option on 'weave launch'\nto enable IP allocation)" >&2
return 1 return 1
fi fi
fi
} }
########################################################################################## ##########################################################################################