Skip to content

Commit

Permalink
Merge pull request kubernetes#36249 from sjenning/fix-lbaas-openstack…
Browse files Browse the repository at this point in the history
…-init

Automatic merge from submit-queue

Fix LBaaS version detection in openstack cloudprovider

`lbversion` is the local variable used for version detection when `os.lbOpts.LBVersion` is not specified.

xref https://bugzilla.redhat.com/show_bug.cgi?id=1391837

@ncdc @derekwaynecarr @anguslees
  • Loading branch information
Kubernetes Submit Queue authored Nov 7, 2016
2 parents aa58e42 + 34fd553 commit e5022f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/providers/openstack/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (os *OpenStack) LoadBalancer() (cloudprovider.LoadBalancer, bool) {

glog.V(1).Info("Claiming to support LoadBalancer")

if os.lbOpts.LBVersion == "v2" {
if lbversion == "v2" {
return &LbaasV2{LoadBalancer{network, compute, os.lbOpts}}, true
} else if lbversion == "v1" {
return &LbaasV1{LoadBalancer{network, compute, os.lbOpts}}, true
Expand Down

0 comments on commit e5022f4

Please sign in to comment.