fix(etcd-bootstrap): Properly check for c10n peers

This commit is contained in:
Brian Waldon 2014-02-11 13:53:54 -07:00
parent 85d70108a1
commit 053a7ff6b7

View File

@ -28,7 +28,7 @@ if [ -e $BOOTSTRAP_DISCO ]; then
elif [ -e $BOOTSTRAP_PEERS ]; then
IPS=$(grep -v $MY_IP $BOOTSTRAP_PEERS | grep -v '^\n$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
if [ -z "$IPS" ]; then
if [ -n "$IPS" ]; then
ARGS="${ARGS} -C ${IPS}"
fi
else