in retry_until only read the last mongo client line (#18630)

Signed-off-by: Kai Timmer <kai@staffbase.com>
This commit is contained in:
Kai Timmer
2019-11-11 07:35:42 -08:00
committed by Kubernetes Prow Robot
parent 20cc1a3d69
commit 17e7dcbb5b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.10.1
version: 3.10.2
appVersion: 3.6
description: NoSQL document-oriented database that stores JSON-like documents with
dynamic schemas, simplifying the integration of data in content-driven applications.
+1 -1
View File
@@ -51,7 +51,7 @@ retry_until() {
creds=()
fi
until [[ $(mongo admin --host "${host}" "${creds[@]}" "${ssl_args[@]}" --quiet --eval "${command}") == "${expected}" ]]; do
until [[ $(mongo admin --host "${host}" "${creds[@]}" "${ssl_args[@]}" --quiet --eval "${command}" | tail -n1) == "${expected}" ]]; do
sleep 1
if (! ps "${pid}" &>/dev/null); then