From f754662375436a12c3b59e2b4d84e2b06d58dffc Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 10 Mar 2013 07:35:29 +0000 Subject: [PATCH] Fix typo Fixes bug 1153132 Change-Id: I66d8bb16cbecc5072d20d2a9b8db8ebf598bf291 --- quantum/plugins/services/agent_loadbalancer/plugin.py | 1 - quantum/tests/unit/services/agent_loadbalancer/test_plugin.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/quantum/plugins/services/agent_loadbalancer/plugin.py b/quantum/plugins/services/agent_loadbalancer/plugin.py index 0a09255dd6..216a9acf29 100644 --- a/quantum/plugins/services/agent_loadbalancer/plugin.py +++ b/quantum/plugins/services/agent_loadbalancer/plugin.py @@ -267,7 +267,6 @@ class LoadBalancerPlugin(loadbalancer_db.LoadBalancerPluginDb): vip = self.get_vip(context, id) super(LoadBalancerPlugin, self).delete_vip(context, id) self.agent_rpc.destroy_pool(context, vip['pool_id']) - pass def create_pool(self, context, pool): p = super(LoadBalancerPlugin, self).create_pool(context, pool) diff --git a/quantum/tests/unit/services/agent_loadbalancer/test_plugin.py b/quantum/tests/unit/services/agent_loadbalancer/test_plugin.py index f2b0f229ba..277a739259 100644 --- a/quantum/tests/unit/services/agent_loadbalancer/test_plugin.py +++ b/quantum/tests/unit/services/agent_loadbalancer/test_plugin.py @@ -250,13 +250,13 @@ class TestLoadBalancerPluginNotificationWrapper(TestLoadBalancerPluginBase): constants.PENDING_UPDATE ) - def t2est_delete_vip(self): + def test_delete_vip(self): with self.subnet() as subnet: with self.pool(subnet=subnet) as pool: with self.vip(pool=pool, subnet=subnet, no_delete=True) as vip: self.mock_api.reset_mock() ctx = context.get_admin_context() - self.plugin_instance.delete_vip(context, vip['vip']['id']) + self.plugin_instance.delete_vip(ctx, vip['vip']['id']) self.mock_api.destroy_pool.assert_called_once_with( mock.ANY, vip['vip']['pool_id']