]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Correct misspelled variable name
authorRobert Mizielski <robert.mizielski@cloudwatt.com>
Tue, 15 Jul 2014 09:19:40 +0000 (11:19 +0200)
committerRobert Mizielski <robert.mizielski@cloudwatt.com>
Thu, 24 Jul 2014 12:23:59 +0000 (12:23 +0000)
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

index 83497b32c47dd5ae2d960e37bc84094e1290c208..a230587ff9d732cef262c23ca8963cc0e705ed75 100644 (file)
@@ -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(