Skip to content

Commit 60fe337

Browse files
tchinmai7eljohnson92
authored andcommitted
fix: check nil
1 parent fe90097 commit 60fe337

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloud/services/domains.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ func removeElement(stringList []string, elemToRemove string) []string {
303303
}
304304

305305
func isCapiMachineReady(capiMachine *v1beta1.Machine) bool {
306+
if capiMachine.Status.V1Beta2 == nil {
307+
return false
308+
}
306309
for _, condition := range capiMachine.Status.V1Beta2.Conditions {
307310
if condition.Type == v1beta1.ReadyV1Beta2Condition && condition.Status == metav1.ConditionTrue {
308311
return true

0 commit comments

Comments
 (0)