Commit 9710da8b authored by Bowei Du's avatar Bowei Du

Fix reference to Items in internal load balancer

parent 5ac26ac4
...@@ -444,7 +444,7 @@ func (gce *GCECloud) ensureInternalInstanceGroup(name, zone string, nodes []*v1. ...@@ -444,7 +444,7 @@ func (gce *GCECloud) ensureInternalInstanceGroup(name, zone string, nodes []*v1.
return "", err return "", err
} }
for _, ins := range instances.Items { for _, ins := range instances {
parts := strings.Split(ins.Instance, "/") parts := strings.Split(ins.Instance, "/")
gceNodes.Insert(parts[len(parts)-1]) gceNodes.Insert(parts[len(parts)-1])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment