Skip to content

Commit

Permalink
nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Aug 12, 2022
1 parent a5c9401 commit c44188f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openstack/ces/v1/alarms/delete_alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import golangsdk "github.com/opentelekomcloud/gophertelekomcloud"

func DeleteAlarm(client *golangsdk.ServiceClient, id string) (err error) {
// DELETE /V1.0/{project_id}/alarms/{alarm_id}
_, err = client.Delete(client.ServiceURL("alarms", id), &golangsdk.RequestOpts{
OkCodes: []int{204},
})
_, err = client.Delete(client.ServiceURL("alarms", id), nil)
return
}

0 comments on commit c44188f

Please sign in to comment.