Skip to content

Commit 3687600

Browse files
committed
RHINENG-15506: fix typo in API path
1 parent cc2cb7a commit 3687600

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manager/controllers/template_systems_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func templateArchVersionMatch(
189189

190190
func callCandlepin(ctx context.Context, owner string, request *candlepin.ConsumersEnvironmentsRequest) (
191191
*candlepin.ConsumersUpdateResponse, error) {
192-
candlepinEnvConsumersURL := utils.CoreCfg.CandlepinAddress + "/owner/" + owner + "/consumers/environments"
192+
candlepinEnvConsumersURL := utils.CoreCfg.CandlepinAddress + "/owners/" + owner + "/consumers/environments"
193193
candlepinFunc := func() (interface{}, *http.Response, error) {
194194
candlepinResp := candlepin.ConsumersUpdateResponse{}
195195
resp, err := candlepinClient.Request(&ctx, http.MethodPut, candlepinEnvConsumersURL, request, &candlepinResp)

platform/candlepin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ func candlepinConsumersEnvironmentsHandler(c *gin.Context) {
5757
func initCandlepin(app *gin.Engine) {
5858
app.PUT("/candlepin/consumers/:consumer", candlepinConsumersPutHandler)
5959
app.GET("/candlepin/consumers/:consumer", candlepinConsumersGetHandler)
60-
app.PUT("/candlepin/owner/:owner/consumers/environments", candlepinConsumersEnvironmentsHandler)
60+
app.PUT("/candlepin/owners/:owner/consumers/environments", candlepinConsumersEnvironmentsHandler)
6161
}

0 commit comments

Comments
 (0)