Skip to content

Use correct API endpoint for category queries#348

Merged
siddharth-nutanix merged 2 commits intonutanix:masterfrom
embik:get-category-query-fix
Feb 22, 2022
Merged

Use correct API endpoint for category queries#348
siddharth-nutanix merged 2 commits intonutanix:masterfrom
embik:get-category-query-fix

Conversation

@embik
Copy link
Copy Markdown
Contributor

@embik embik commented Feb 16, 2022

Hey folks, I found this bug while working with the client library downstream. The correct API endpoint /category/query is documented here. The current implementation fails with a "method not allowed" error because it's essentially using the "Get a category key" endpoint against a category called "query" (but the endpoint doesn't support POST).

GetCategoryQuery() does not seem to be used anywhere in the provider, so I'm not sure how interested you are in this fix, but I wanted to send this upstream as it might come in handy in the future. Feel free to close if not relevant.

Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@siddharth-nutanix siddharth-nutanix added 1.3.1 Target for release 1.3.1 bug 1.4 and removed 1.3.1 Target for release 1.3.1 labels Feb 17, 2022
@siddharth-nutanix siddharth-nutanix self-requested a review February 21, 2022 15:50
@siddharth-nutanix
Copy link
Copy Markdown
Collaborator

siddharth-nutanix commented Feb 21, 2022

/ok-to-test

Acceptance test run status: success
Line code coverage is 59.5

@siddharth-nutanix siddharth-nutanix merged commit de75182 into nutanix:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants