Skip to content

Commit

Permalink
fix: StorageGRID should honor template api version (#2744)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds authored Mar 13, 2024
1 parent 9f4ed14 commit 2c0726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/collectors/storagegrid/storagegrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (s *StorageGrid) InitAPIPath() {
apiVersion := s.Params.GetChildContentS("api")
if !strings.HasSuffix(s.client.APIPath, apiVersion) {
cur := s.client.APIPath
s.client.APIPath = "/apiVersion/" + apiVersion
s.client.APIPath = "/api/" + apiVersion
s.Logger.Debug().
Str("clientAPI", cur).
Str("templateAPI", apiVersion).
Expand Down

0 comments on commit 2c0726b

Please sign in to comment.