cloudprovider/openstack: fix bug the tries to use octavia client to query flip

This commit is contained in:
jrperritt 2018-01-30 18:05:04 -06:00
parent a18f086220
commit f8c8ec612b

View File

@ -922,7 +922,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(clusterName string, apiService *v1.Serv
}
portID := loadbalancer.VipPortID
floatIP, err := getFloatingIPByPortID(lbaas.lb, portID)
floatIP, err := getFloatingIPByPortID(lbaas.network, portID)
if err != nil && err != ErrNotFound {
return nil, fmt.Errorf("error getting floating ip for port %s: %v", portID, err)
}