Skip to content

Add support for deleting nova service#2427

Merged
EmilienM merged 8 commits intogophercloud:masterfrom
CloudCourierStation:feature/support_delete_nova_service
Jul 14, 2022
Merged

Add support for deleting nova service#2427
EmilienM merged 8 commits intogophercloud:masterfrom
CloudCourierStation:feature/support_delete_nova_service

Conversation

@CloudCourierStation
Copy link
Copy Markdown
Contributor

@coveralls
Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

cc @kayrus @jtopjian

@EmilienM
Copy link
Copy Markdown
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
Copy Markdown
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