[config-ref] Remove heading and trailing blanks from help

Not to break the script with the heading and trailing blanks.
It happens at glance with oslo.i18n deprecation messages.

Change-Id: I33ab7a815fc092cef2ed0688b0693c23802b23c6
This commit is contained in:
KATO Tomoyuki 2016-09-30 14:09:28 +09:00
parent ff558eb3b1
commit 1057a48575
1 changed files with 2 additions and 1 deletions

View File

@ -478,7 +478,8 @@ def write_files(package_name, options, target, output_format):
if not option.help.strip().startswith('DEPRECATED'):
helptext = 'DEPRECATED: ' + helptext
if getattr(option, 'deprecated_reason', None):
helptext += ' ' + option.deprecated_reason
helptext += ' '
helptext += option.deprecated_reason.lstrip().rstrip()
opt_type = _TYPE_DESCRIPTIONS.get(type(option), 'Unknown')
flags = []