fix return code on failure for geth sync check

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-04-16 17:28:37 +02:00
parent e0767722f3
commit 345b09c592
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
RESP=$(curl -s -X POST -H 'Content-type:application/json' \
--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' \
http://localhost:{{ faucet_geth_rpc_port }}/)
echo "${RESP}" | jq -e ".result == false" || echo "${RESP}"
echo "${RESP}" | jq -e ".result == false" \
|| ( echo "${RESP}"; exit 1 )
- name: 'Consul service definition - {{ faucet_geth_name }}-rpc'
include_role: name=consul-service