Fix incomplete exception message

This is follow-up of 76d414e58d and fixes
the incomplete construction of an exception message. This also removes
the translation according to the other messages.

Change-Id: Ie2ed619b06d9d6340eb81fc1fac4dbd21702de19
This commit is contained in:
Takashi Kajinami 2024-02-18 02:52:02 +09:00
parent 8aba3853ab
commit e8de6c9ea5
1 changed files with 2 additions and 3 deletions

View File

@ -298,12 +298,11 @@ def _build_cache_config(conf):
'%s.arguments.connection_kwargs' % prefix, '%s.arguments.connection_kwargs' % prefix,
{}).update(conn_kwargs) {}).update(conn_kwargs)
else: else:
msg = _( raise exception.ConfigurationError(
"TLS setting via [cache] tls_enabled is not supported by the " "TLS setting via [cache] tls_enabled is not supported by the "
"%s backend. Set [cache] tls_enabled=False or use a different " "%s backend. Set [cache] tls_enabled=False or use a different "
"backend." "backend." % conf.cache.backend
) )
raise exception.ConfigurationError(msg)
# NOTE(hberaud): Pymemcache support socket keepalive, If it is enable in # NOTE(hberaud): Pymemcache support socket keepalive, If it is enable in
# our config then configure it to enable this feature. # our config then configure it to enable this feature.