From a7d6f5133e1d138509392679079e180bc2f1fd75 Mon Sep 17 00:00:00 2001 From: Ananth Bhaskararaman Date: Thu, 22 Jan 2026 15:46:34 +0530 Subject: [PATCH] use storage path --- pkg/haproxy/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/haproxy/client.go b/pkg/haproxy/client.go index 51d9df9..2e05ee0 100644 --- a/pkg/haproxy/client.go +++ b/pkg/haproxy/client.go @@ -249,11 +249,11 @@ func (c *Client) GetCertificateInfoByPath(filePath, displayName string) (*CertIn // GetCertificateInfoByRef retrieves detailed information using a CertificateRef func (c *Client) GetCertificateInfoByRef(ref CertificateRef) (*CertInfo, error) { - // Use DisplayName (storage_name) for API lookup, as the HAProxy Data Plane API - // storage endpoint expects the storage name, not the full filesystem path - lookupPath := ref.DisplayName + // Use FilePath for API lookup, as the HAProxy Data Plane API v2 storage endpoint + // expects the full file path, not the storage name + lookupPath := ref.FilePath if lookupPath == "" { - lookupPath = ref.FilePath + lookupPath = ref.DisplayName } return c.GetCertificateInfoByPath(lookupPath, ref.DisplayName) }