Skip to content

Commit

Permalink
Fixed error in the kubernetes cluster, the master's ip was not set
Browse files Browse the repository at this point in the history
if the cluster state was not active, the master's ip was not set,  now it is waiting for the cluster to be active

Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Jul 6, 2020
1 parent d049062 commit 8ab9073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func resourceKubernetesClusterCreate(d *schema.ResourceData, m interface{}) erro
return resource.NonRetryableError(fmt.Errorf("[ERR] error geting kubernetes cluster: %s", err))
}

if resp.Ready != true {
if resp.Status != "ACTIVE" {
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 8ab9073

Please sign in to comment.