From 8cb80c4a594f10d781316ed3e3a8dc6134e0d825 Mon Sep 17 00:00:00 2001 From: Sarafraj Singh Date: Tue, 21 Jun 2016 17:06:41 -0500 Subject: [PATCH] Improve help text of image_file_url Implements blueprint centralize-config-options-newton Change-Id: If7717c892b17483a254019697cc087d5e689cdcc --- nova/conf/image_file_url.py | 45 ++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/nova/conf/image_file_url.py b/nova/conf/image_file_url.py index 76bea929f97c..fcfa46777d52 100644 --- a/nova/conf/image_file_url.py +++ b/nova/conf/image_file_url.py @@ -22,7 +22,6 @@ from oslo_config import cfg -from nova.i18n import _ image_file_url_group = cfg.OptGroup( 'image_file_url', @@ -30,35 +29,41 @@ image_file_url_group = cfg.OptGroup( filesystems = cfg.ListOpt( name='filesystems', - deprecated_for_removal=True, - deprecated_reason='The feature to download images from glance via ' - 'filesystem is not used and will be removed in the ' - 'future.', default=[], - help=_('List of file systems that are configured ' - 'in this file in the ' - 'image_file_url: ' - 'sections')) + deprecated_for_removal=True, + deprecated_reason=""" +The feature to download images from glance via filesystem is not used and will +be removed in the future. +""", + help=""" +List of file systems that are configured in this file in the +image_file_url: sections +""") # NOTE(jbresnah) because the group under which these options are added is # dynamically determined these options need to stay out of global space # or they will confuse generate_sample.sh filesystem_opts = [ cfg.StrOpt('id', - help=_('A unique ID given to each file system. This is ' - 'value is set in Glance and agreed upon here so ' - 'that the operator knowns they are dealing with ' - 'the same file system.'), deprecated_for_removal=True, - deprecated_reason='The feature to download images from glance ' - 'via filesystem is not used and will be ' - 'removed in the future.'), + deprecated_reason=""" +The feature to download images from glance via filesystem is not used and will +be removed in the future. +""", + help=""" +A unique ID given to each file system. This is value is set in Glance and +agreed upon here so that the operator knowns they are dealing with the same +file system. +"""), cfg.StrOpt('mountpoint', - help=_('The path at which the file system is mounted.'), deprecated_for_removal=True, - deprecated_reason='The feature to download images from glance ' - 'via filesystem is not used and will be ' - 'removed in the future.'), + deprecated_reason=""" +The feature to download images from glance via filesystem is not used and will +be removed in the future. +""", + help=""" +The path at which the file system is mounted. +"""), ] ALL_OPTS = [filesystems]