fix return code on failure for geth sync check
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e0767722f3
commit
345b09c592
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue