Skip to content

Commit

Permalink
Fixed typos on for loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
baderbuddy committed Dec 30, 2019
1 parent 30c06e4 commit 697b18d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/fleet/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func nodesOverview(cfg api.Config, context string) (string, error) {
nodes, err := cs.CoreV1().Nodes().List(metav1.ListOptions{})
nodeCount := len(nodes.Items)
readyCount := 0
for _, node in nodes.Items {
for _, nodeCondition in node.Status.Conditions {
for _, node := range nodes.Items {
for _, nodeCondition := range node.Status.Conditions {
if nodeCondition.Type == "Ready" {
if nodeCondition.Status == "True" {
readyCount++
Expand Down

0 comments on commit 697b18d

Please sign in to comment.