From 00d3677615b0587fc05e3043ee0a3a10d237c780 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Wed, 9 Dec 2015 22:51:54 +0530 Subject: Enable client plugin to support dynamic api version It helps client plugin to create client based on the required api version given at run time instead of hard-coded version. implements blueprint enable-client-plugin-to-use-a-given-service-api-version Change-Id: I1cf3cdf498b7a97b6aa262eb3012edda8ad2aaaf --- heat/tests/clients/test_cinder_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heat/tests/clients/test_cinder_client.py') diff --git a/heat/tests/clients/test_cinder_client.py b/heat/tests/clients/test_cinder_client.py index 9d90a2376..13a84bde5 100644 --- a/heat/tests/clients/test_cinder_client.py +++ b/heat/tests/clients/test_cinder_client.py @@ -31,7 +31,7 @@ class CinderClientPluginTest(common.HeatTestCase): con = utils.dummy_context() c = con.clients self.cinder_plugin = c.client_plugin('cinder') - self.cinder_plugin._client = self.cinder_client + self.cinder_plugin.client = lambda: self.cinder_client def test_get_volume(self): """Tests the get_volume function.""" -- cgit v1.2.1