From d7c5ddd93b85c7e526548ed00be367ba1eb21f26 Mon Sep 17 00:00:00 2001 From: Michael Nelson Date: Fri, 28 Oct 2022 17:45:33 +1100 Subject: [PATCH] Revert unintentional change. Signed-off-by: Michael Nelson --- cmd/pinniped-proxy/src/pinniped.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/pinniped-proxy/src/pinniped.rs b/cmd/pinniped-proxy/src/pinniped.rs index d53343a578d..7bfc40e2566 100644 --- a/cmd/pinniped-proxy/src/pinniped.rs +++ b/cmd/pinniped-proxy/src/pinniped.rs @@ -216,12 +216,11 @@ fn get_client_config( .context("Failed parsing url for exchange")?, ); config.default_namespace = pinniped_namespace.clone(); - let x509 = X509::from_pem(&k8s_api_ca_cert_data).context("error creating x509 from pem")?; + let x509 = X509::from_pem(k8s_api_ca_cert_data).context("error creating x509 from pem")?; let der = x509.to_der().context("error creating der from x509")?; config.root_cert = Some(vec![der]); - let client = Client::try_from(config)?; - Ok(client) + Ok(Client::try_from(config)?) } /// prepare_and_call_pinniped_exchange returns the resulting