From f0c981cfc4873b46710628a7de394e0a826cdd6a Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 30 May 2017 08:48:19 -0500 Subject: [PATCH] Fix legacy clients helpers There is no method called _create_or_return_legacy_client. Also, you have to pass a variable to a format. Change-Id: I559416d29c34b6cfea944f405c8608714ad81508 --- shade/_legacy_clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shade/_legacy_clients.py b/shade/_legacy_clients.py index 3790d593b..f34261593 100644 --- a/shade/_legacy_clients.py +++ b/shade/_legacy_clients.py @@ -37,7 +37,7 @@ class LegacyClientFactoryMixin(object): return self._legacy_clients[client] def _deprecated_import_check(self, client): - module_name = '{client}client' + module_name = '{client}client'.format(client=client) warnings.warn( 'Using shade to get a {module_name} object is deprecated. If you' ' need a {module_name} object, please use make_legacy_client in' @@ -61,7 +61,7 @@ class LegacyClientFactoryMixin(object): @property def neutron_client(self): - return self._create_or_return_legacy_client('neutron', 'network') + return self._create_legacy_client('neutron', 'network') @property def nova_client(self):