Skip to content

Commit

Permalink
Fixed error in the cluster upgrade cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Jun 24, 2020
1 parent 9c39218 commit c49389a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ func (c *Client) GetKubernetesClusters(id string) (*KubernetesCluster, error) {
// UpdateKubernetesCluster update a single kubernetes cluster by its full ID
func (c *Client) UpdateKubernetesCluster(id string, i *KubernetesClusterConfig) (*KubernetesCluster, error) {
params := map[string]interface{}{
"name": i.Name,
"node_destroy": i.NodeDestroy,
"num_target_nodes": i.NumTargetNodes,
"version": i.KubernetesVersion,
"applications": i.Applications,
"name": i.Name,
"node_destroy": i.NodeDestroy,
"num_target_nodes": i.NumTargetNodes,
"kubernetes_version": i.KubernetesVersion,
"applications": i.Applications,
}

resp, err := c.SendPutRequest(fmt.Sprintf("/v2/kubernetes/clusters/%s", id), params)
Expand Down

0 comments on commit c49389a

Please sign in to comment.