Skip to content

Commit

Permalink
Fixed the recycle option in Kubernetes
Browse files Browse the repository at this point in the history
Close #43

Signed-off-by: Alejandro JNM <[email protected]>
  • Loading branch information
alejandrojnm committed Oct 31, 2020
1 parent 4b69a79 commit 405567d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (c *Client) DeleteKubernetesCluster(id string) (*SimpleResponse, error) {

// RecycleKubernetesCluster create a new cluster of kubernetes
func (c *Client) RecycleKubernetesCluster(id string, hostname string) (*SimpleResponse, error) {
body, err := c.SendPostRequest(fmt.Sprintf("/v2/kubernetes/clusters/%s", id), map[string]string{
body, err := c.SendPostRequest(fmt.Sprintf("/v2/kubernetes/clusters/%s/recycle", id), map[string]string{
"hostname": hostname,
})
if err != nil {
Expand Down

0 comments on commit 405567d

Please sign in to comment.