Fix reference to Items in internal load balancer

This commit is contained in:
Bowei Du 2018-01-18 17:44:30 -08:00
parent 5ac26ac46f
commit 9710da8be5

View File

@ -444,7 +444,7 @@ func (gce *GCECloud) ensureInternalInstanceGroup(name, zone string, nodes []*v1.
return "", err
}
for _, ins := range instances.Items {
for _, ins := range instances {
parts := strings.Split(ins.Instance, "/")
gceNodes.Insert(parts[len(parts)-1])
}