Skip to content

Commit

Permalink
Also check ProviderStatus has been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Mar 12, 2019
1 parent fc9d66b commit 6ca41e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/clusterctl/clusterdeployer/clusterclient/clusterclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ func (c *client) WaitForResourceStatuses() error {
if reflect.DeepEqual(clusterv1.ClusterStatus{}, cluster.Status) {
return false, nil
}
if cluster.Status.ProviderStatus == nil {
return false, nil
}
}
machineDeployments, err := c.clientSet.ClusterV1alpha1().MachineDeployments("").List(metav1.ListOptions{})
if err != nil {
Expand Down Expand Up @@ -779,6 +782,9 @@ func (c *client) WaitForResourceStatuses() error {
if reflect.DeepEqual(clusterv1.MachineStatus{}, m.Status) {
return false, nil
}
if m.Status.ProviderStatus == nil {
return false, nil
}
}

return true, nil
Expand Down

0 comments on commit 6ca41e3

Please sign in to comment.