Merge pull request #350 from bcwaldon/etcd-bootstrap-fix

Properly check for c10n peers in etcd-bootstrap
This commit is contained in:
Brian Waldon 2014-02-11 13:56:14 -07:00
commit 8f6f6007a0
2 changed files with 1 additions and 1 deletions

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