From 9e7954db7ec86deffc9e3f96c5d4ced0dbe3c8ef Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Mon, 23 Jan 2023 12:00:51 -0500 Subject: [PATCH] Yadro tatlin_client: Fix bad message formatting Fix bad error message formatting in get_pool_id_by_name. (Found with pylint.) Change-Id: I112f50681343f92a2a25b3c73381d030b5216323 --- cinder/volume/drivers/yadro/tatlin_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/yadro/tatlin_client.py b/cinder/volume/drivers/yadro/tatlin_client.py index 2ec6742b686..c858e099abf 100644 --- a/cinder/volume/drivers/yadro/tatlin_client.py +++ b/cinder/volume/drivers/yadro/tatlin_client.py @@ -366,7 +366,7 @@ class TatlinClientCommon: result, status = self._access_api(tatlin_api.POOLS) except TatlinAPIException as exp: message = _('Unable to get pool id for %s due to %s' % - pool_name, exp.message) + (pool_name, exp.message)) LOG.error(message) raise exception.VolumeBackendAPIException(message=message)