Skip to content

Commit

Permalink
fix platform client updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atye committed Jan 14, 2025
1 parent d4f97b0 commit 1febdc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/proxy/powermax_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/storage-service/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1febdc0

Please sign in to comment.