From 069ff22d53af8e102a05062fef1920f6877e86ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 23 Feb 2021 17:14:15 +0100 Subject: [PATCH] ceph: show error even in silent curl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The --silent option will remove the progress bar of the curl but also silence any errors of stderr, so adding --show-error will display the error even if --silent is used. Signed-off-by: Sébastien Han --- pkg/operator/ceph/cluster/osd/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/cluster/osd/spec.go b/pkg/operator/ceph/cluster/osd/spec.go index b458a7aa3..358d24de1 100644 --- a/pkg/operator/ceph/cluster/osd/spec.go +++ b/pkg/operator/ceph/cluster/osd/spec.go @@ -161,7 +161,7 @@ KEK_NAME=%s KEY_PATH=%s VAULT_DEFAULT_KV_VERS=v1 CURL_PAYLOAD=$(mktemp) -ARGS=(--silent --request GET --header "X-Vault-Token: ${VAULT_TOKEN}") +ARGS=(--silent --show-error --request GET --header "X-Vault-Token: ${VAULT_TOKEN}") # If a vault namespace is set if [ -n "$VAULT_NAMESPACE" ]; then