Skip to content

Commit c8844a1

Browse files
committed
update method
Signed-off-by: nhamza <[email protected]>
1 parent 861dd6e commit c8844a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/extended/two_node/utils/common.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,8 @@ func EnsureTNFDegradedOrSkip(oc *exutil.CLI) {
282282
func CountReadyNodes(nodes []corev1.Node) int {
283283
ready := 0
284284
for _, n := range nodes {
285-
for _, cond := range n.Status.Conditions {
286-
if cond.Type == corev1.NodeReady && cond.Status == corev1.ConditionTrue {
287-
ready++
288-
break
289-
}
285+
if isNodeObjReady(n) {
286+
ready++
290287
}
291288
}
292289
return ready

0 commit comments

Comments
 (0)