Alphanet: fix ./alphanet.sh endorser status
This commit is contained in:
parent
7b59161591
commit
3b4db01ac7
@ -349,9 +349,8 @@ check_endorser() {
|
|||||||
docker_endorser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_endorser-\1_1/g" "$active_protocol_versions")"
|
docker_endorser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_endorser-\1_1/g" "$active_protocol_versions")"
|
||||||
res=$(docker inspect \
|
res=$(docker inspect \
|
||||||
--format="{{ .State.Running }}" \
|
--format="{{ .State.Running }}" \
|
||||||
--type=container $docker_endorser_containers 2>/dev/null \
|
--type=container $docker_endorser_containers 2>/dev/null | grep false)
|
||||||
|| echo false)
|
[ -z "$res" ]
|
||||||
[ "$res" = true ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_endorser() {
|
assert_endorser() {
|
||||||
@ -415,9 +414,8 @@ check_accuser() {
|
|||||||
docker_accuser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_accuser-\1_1/g" "$active_protocol_versions")"
|
docker_accuser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_accuser-\1_1/g" "$active_protocol_versions")"
|
||||||
res=$(docker inspect \
|
res=$(docker inspect \
|
||||||
--format="{{ .State.Running }}" \
|
--format="{{ .State.Running }}" \
|
||||||
--type=container $docker_accuser_containers 2>/dev/null \
|
--type=container $docker_accuser_containers 2>/dev/null | grep false)
|
||||||
|| echo false)
|
[ -z "$res" ]
|
||||||
[ "$res" = true ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_accuser() {
|
assert_accuser() {
|
||||||
|
Loading…
Reference in New Issue
Block a user