Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct API endpoint for category queries #348

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

embik
Copy link
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
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