Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 3903f4c

Browse files
author
Yifan Gu
committed
e2e: Fix GetCluster().
1 parent 40a7f46 commit 3903f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func GetCluster() (*Cluster, error) {
7474
return nil, err
7575
}
7676

77-
for _, n := range nodelist.Items {
78-
nn := newNode(&n)
77+
for i := range nodelist.Items {
78+
nn := newNode(&nodelist.Items[i])
7979
if nn.IsMaster() {
8080
c.Masters = append(c.Masters, nn)
8181
} else {

0 commit comments

Comments
 (0)