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

Add support for deleting nova service #2427

Conversation

CloudCourierStation
Copy link
Contributor

@coveralls
Copy link

coveralls commented Jun 20, 2022

Coverage Status

Coverage increased (+0.005%) to 79.987% when pulling 083b669 on CloudCourierStation:feature/support_delete_nova_service into 3ce7b72 on gophercloud:master.

@CloudCourierStation
Copy link
Contributor Author

cc @kayrus @jtopjian

@EmilienM
Copy link
Contributor

Thanks for your contribution, I guess this one can't be tested in acceptance, because once a service is removed, this can't be re-added from API, AFIK.

// Delete will delete the existing service with the provided ID.
func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) {
resp, err := client.Delete(updateURL(client, id), &gophercloud.RequestOpts{
OkCodes: []int{204},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EmilienM EmilienM merged commit 5b4f7ed into gophercloud:master Jul 14, 2022
mdelord pushed a commit to ovh/gophercloud that referenced this pull request Oct 7, 2022
* Add support for deleting nova service

* Add support for deleting nova service

* fix Delete Result value

* fix service delete response ok code

* modify test

* modify test

* modify test

* modify test

Co-authored-by: 吴典秋 <muti_kube@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for deleting nova service
4 participants