Skip to content

Commit

Permalink
update basepath variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Oct 31, 2024
1 parent 2b4bf12 commit 09bdd6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (a *api) do(ctx context.Context, request interface{}, queryParams map[strin
// Set the path
if !a.removeVmaasCMPBasePath {
// Add the base path of the vmaas-cmp API if we are calling the vmaas-cmp API
a.path = fmt.Sprintf("%s/%s/%s", a.client.getHost(), consts.CmpAPIBasePath, a.path)
a.path = fmt.Sprintf("%s/%s/%s", a.client.getHost(), consts.VmaasCmpAPIBasePath, a.path)
} else {
// Don't use the base path of the vmaas-cmp API if we are calling the broker API
a.path = fmt.Sprintf("%s/%s", a.client.getHost(), a.path)
Expand Down
6 changes: 2 additions & 4 deletions pkg/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
package common

const (
// VmaasCmpAPIBasePath base cmp api path
VmaasCmpAPIBasePath = "v1"
// CmpAPIBasePath base cmp api path
CmpAPIBasePath string = "api"
// VmaasCmpAPIBasePath base cmp api path - currently used to talk to CMP directly
VmaasCmpAPIBasePath = "api"
// InstancesPath
InstancesPath = "instances"
// InstanceTypesPath
Expand Down

0 comments on commit 09bdd6e

Please sign in to comment.