Skip to content

Commit

Permalink
Merge pull request #244 from yannickstruyf3/bugfix/karbon-recover-fai…
Browse files Browse the repository at this point in the history
…lure
  • Loading branch information
marinsalinas authored Feb 1, 2021
2 parents 9a91cc0 + 4853eb9 commit c7356de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutanix/resource_nutanix_karbon_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ func resourceNutanixKarbonClusterCreate(d *schema.ResourceData, meta interface{}
if createClusterResponse.ClusterUUID == "" {
return fmt.Errorf("did not retrieve cluster uuid")
}
// Set terraform state id
d.SetId(createClusterResponse.ClusterUUID)
err = WaitForKarbonCluster(client, timeout, createClusterResponse.TaskUUID)
if err != nil {
return err
Expand All @@ -519,8 +521,6 @@ func resourceNutanixKarbonClusterCreate(d *schema.ResourceData, meta interface{}
conn.Cluster.AddPrivateRegistry(karbonClusterName, newP)
}
}
// Set terraform state id
d.SetId(createClusterResponse.ClusterUUID)
return resourceNutanixKarbonClusterRead(d, meta)
}

Expand Down

0 comments on commit c7356de

Please sign in to comment.