]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Big Switch: Check source_address attribute exists
authorKevin Benton <blak111@gmail.com>
Thu, 8 May 2014 23:33:06 +0000 (16:33 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 8 May 2014 23:34:23 +0000 (16:34 -0700)
commitf5e4cf8e3edd1ce0ebb8c0c7256be07d094896de
tree5de9df47215fb06b2a7f755c51e54e0dbba3a5b8
parentc33013c46a6d66768f585a2570be99d1b2ee85fb
Big Switch: Check source_address attribute exists

Check that the source_address attribute exists on
HTTPSConnection objects before referencing it since
it's not present on python 2.6 deployments. If it
does not exist, create a socket connection without
specifying the source.

Closes-Bug: #1316382
Change-Id: Ica10d23cc6de81ae56f711937f208c7321c77f36
neutron/plugins/bigswitch/servermanager.py
neutron/tests/unit/bigswitch/test_servermanager.py