trivial: Remove errant space from deprecation warning
We also simplify this code in general while here. Change-Id: Ic0bd28d3614c81252820aeeaf163c767692e9e91 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
1 file changed
+3
-8
+3
-8
@@ -3885,19 +3885,14 @@ class ConfigOpts(Mapping[str, Any]):
|
||||
)
|
||||
if not real_opt_name:
|
||||
raise NoSuchOptError(opt_name, group)
|
||||
log_real_group_name = real_group_name or 'DEFAULT'
|
||||
dep_message = (
|
||||
'Config option %(dep_group)s.%(dep_option)s '
|
||||
' is deprecated. Use option %(group)s.'
|
||||
'%(option)s instead.'
|
||||
)
|
||||
LOG.warning(
|
||||
dep_message,
|
||||
'Config option %(dep_group)s.%(dep_option)s is deprecated. '
|
||||
'Use option %(group)s.%(option)s instead.',
|
||||
{
|
||||
'dep_option': opt_name,
|
||||
'dep_group': group,
|
||||
'option': real_opt_name,
|
||||
'group': log_real_group_name,
|
||||
'group': real_group_name or 'DEFAULT',
|
||||
},
|
||||
)
|
||||
opt_name = real_opt_name
|
||||
|
||||
Reference in new issue
Block a user