diff --git a/pkg/client/api.go b/pkg/client/api.go index e4b32fa..f8e5ce0 100644 --- a/pkg/client/api.go +++ b/pkg/client/api.go @@ -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) diff --git a/pkg/common/constants.go b/pkg/common/constants.go index e28a1a9..46d8b28 100644 --- a/pkg/common/constants.go +++ b/pkg/common/constants.go @@ -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