Skip to content

Commit

Permalink
Fixed bug in the kubernetes cluster resource
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Aug 17, 2020
1 parent 4a792b9 commit bee9eb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func resourceKubernetesCluster() *schema.Resource {
"kubernetes_version": {
Type: schema.TypeString,
Optional: true,
Default: "1.0.0",
Description: "the version of k3s to install (optional, the default is currently the latest available)",
},
"tags": {
Expand Down Expand Up @@ -221,7 +220,7 @@ func resourceKubernetesClusterCreate(d *schema.ResourceData, m interface{}) erro
return resource.NonRetryableError(fmt.Errorf("[ERR] error geting kubernetes cluster: %s", err))
}

if resp.Status != "ACTIVE" {
if resp.Ready != true {
return resource.RetryableError(fmt.Errorf("[ERR] waiting for the kubernets cluster to be created but the status is %s", resp.Status))
}

Expand Down

0 comments on commit bee9eb4

Please sign in to comment.