BSN: Set hash header to empty instead of False

Sets the consistency hash header to empty instead
of False since 'False' is handled like a string on
the backend and requires special-casing to detect.

Conflicts:

	neutron/tests/unit/bigswitch/test_servermanager.py

Change-Id: Iee1651574c01a32e78167a9bbed4e0433abbdec2
Closes-Bug: #1325771
(cherry-picked from 7b9ed4edee)
This commit is contained in:
Kevin Benton 2014-06-01 22:43:02 -07:00
parent 26a591af18
commit 315319c246
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class ServerProxy(object):
headers['NeutronProxy-Agent'] = self.name
headers['Instance-ID'] = self.neutron_id
headers['Orchestration-Service-ID'] = ORCHESTRATION_SERVICE_ID
headers[HASH_MATCH_HEADER] = self.mypool.consistency_hash
headers[HASH_MATCH_HEADER] = self.mypool.consistency_hash or ''
if 'keep-alive' in self.capabilities:
headers['Connection'] = 'keep-alive'
else: