-
Notifications
You must be signed in to change notification settings - Fork 521
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
Compute v2: Delete aggregate #740
Conversation
Build succeeded.
|
@dstdfx This will need rebased. Looks good to me, otherwise. |
fd4fa4f
to
3fcb495
Compare
@jtopjian Done :) |
3fcb495
to
80079db
Compare
Build succeeded.
|
@dstdfx I did a quick test of this and it looks like Nova is returning a 200 code. Can you confirm if that's what you're seeing?
|
@jtopjian You're right. I've changed it. |
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dstdfx Just one more minor change and this is good to go.
func Delete(client *gophercloud.ServiceClient, aggregateID int) (r DeleteResult) { | ||
v := strconv.Itoa(aggregateID) | ||
_, r.Err = client.Delete(aggregatesDeleteURL(client, v), &gophercloud.RequestOpts{ | ||
OkCodes: []int{200}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very minor nit and I apologize, but we should make this look like the other OkCodes:
_, r.Err = client.Delete(aggregatesDeleteURL(client, v), &gophercloud.RequestOpts{
OkCodes: []int{200},
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I'm surprised that go fmt
didn't fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was surprised that both fmt
and vet
didn't flag it. Thank you for fixing this :)
Build succeeded.
|
@dstdfx Thank you for your work on this. If you can, can you submit a PR with an acceptance test for this? |
@jtopjian Sure, next PR will be an acceptance test for create/delete aggregates. |
…ophercloud#740) Input comment "recheck stable/stein" in pull request comments, that will trigger acceptance tests against OpenStack Stein release. OpenLab will report test result in followint comments automatically. Related: theopenlab/openlab#231
For #738
Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
API doc:
Source code: