From 2abe915b66e0deba0207961a771f063940dd56cb Mon Sep 17 00:00:00 2001 From: Robert Mizielski Date: Tue, 15 Jul 2014 11:19:40 +0200 Subject: [PATCH] Correct misspelled variable name In neutron/services/loadbalancer/drivers/embrane/driver.py, "persistence" is wrote with an "a", not with an "e". This patch fix this. Change-Id: I8da0d6d28c188c73ed844a8a0c7a523dae713344 --- neutron/services/loadbalancer/drivers/embrane/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/services/loadbalancer/drivers/embrane/driver.py b/neutron/services/loadbalancer/drivers/embrane/driver.py index 83497b32c..a230587ff 100644 --- a/neutron/services/loadbalancer/drivers/embrane/driver.py +++ b/neutron/services/loadbalancer/drivers/embrane/driver.py @@ -86,8 +86,8 @@ class EmbraneLbaas(abstract_driver.LoadBalancerAbstractDriver): if vip.get('connection_limit') and vip['connection_limit'] != -1: raise h_exc.UnsupportedException( err_msg=_('Connection limit is not supported by Embrane LB')) - persistance = vip.get('session_persistence') - if (persistance and persistance.get('type') == + persistence = vip.get('session_persistence') + if (persistence and persistence.get('type') == lbcon.SESSION_PERSISTENCE_APP_COOKIE): p_type = vip['session_persistence']['type'] raise h_exc.UnsupportedException( -- 2.45.2