From 1febdc08222bf4f73af974bff9cd1d770477101e Mon Sep 17 00:00:00 2001 From: Aaron Tye Date: Tue, 14 Jan 2025 21:27:33 +0000 Subject: [PATCH] fix platform client updates --- internal/proxy/powermax_handler.go | 4 ++-- internal/storage-service/validate.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/proxy/powermax_handler.go b/internal/proxy/powermax_handler.go index f7497a11..e87b0f84 100644 --- a/internal/proxy/powermax_handler.go +++ b/internal/proxy/powermax_handler.go @@ -321,7 +321,7 @@ func (s *PowerMaxSystem) volumeCreateHandler(next http.Handler, enf *quota.Redis volID := payload.Editstoragegroupactionparam.Expandstoragegroupparam.Addvolumeparam.Volumeattributes[0].Volumeidentifier.IdentifierName // Determine which pool this SG exists within, as it will form the quota key. - client, err := pmax.NewClientWithArgs(s.Endpoint, appName, true, false) + client, err := pmax.NewClientWithArgs(s.Endpoint, appName, true, false, "") if err != nil { writeError(w, "powermax", "failed to build powermax client", http.StatusInternalServerError, s.log) return @@ -542,7 +542,7 @@ func (s *PowerMaxSystem) volumeModifyHandler(next http.Handler, enf *quota.Redis } // Determine which pool this SG exists within, as it will form the quota key. - client, err := pmax.NewClientWithArgs(s.Endpoint, appName, true, false) + client, err := pmax.NewClientWithArgs(s.Endpoint, appName, true, false, "") if err != nil { writeError(w, "powermax", "failed to build powermax client", http.StatusInternalServerError, s.log) return diff --git a/internal/storage-service/validate.go b/internal/storage-service/validate.go index 3b3d2cec..c80e43a4 100644 --- a/internal/storage-service/validate.go +++ b/internal/storage-service/validate.go @@ -107,7 +107,7 @@ func validatePowermax(ctx context.Context, _ *logrus.Entry, system storage.Syste } epURL.Scheme = "https" - powerMaxClient, err := pmax.NewClientWithArgs(epURL.String(), "CSM-Authz", true, false) + powerMaxClient, err := pmax.NewClientWithArgs(epURL.String(), "CSM-Authz", true, false, "") if err != nil { return err }