From 315319c246e17575756139c20694bc37efdf5818 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Sun, 1 Jun 2014 22:43:02 -0700 Subject: [PATCH] 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 7b9ed4edeef7d599c164c8682fbbb36066d98abb) --- neutron/plugins/bigswitch/servermanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/plugins/bigswitch/servermanager.py b/neutron/plugins/bigswitch/servermanager.py index 2ab629797e4..29b271cc4a3 100644 --- a/neutron/plugins/bigswitch/servermanager.py +++ b/neutron/plugins/bigswitch/servermanager.py @@ -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: