From: Robert Mizielski Date: Tue, 15 Jul 2014 09:19:40 +0000 (+0200) Subject: Correct misspelled variable name X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2abe915b66e0deba0207961a771f063940dd56cb;p=openstack-build%2Fneutron-build.git 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 --- 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(