Remove enable_v1_api and enable_v2_api config opts

Both options are not used in the code and the help text already
mentioned that the variables will be removed.

Change-Id: I4b90080dde789b772323e1d93d5a08c4d9f342f5
This commit is contained in:
Thomas Bechtold 2016-08-22 07:50:29 +02:00
parent ef9e231b19
commit 7578ad2df2
2 changed files with 0 additions and 24 deletions

View File

@ -14,22 +14,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from oslo_log import log
import paste.urlmap
from manila.i18n import _LW
LOG = log.getLogger(__name__)
CONF = cfg.CONF
def root_app_factory(loader, global_conf, **local_conf):
if CONF.enable_v1_api:
LOG.warning(_LW('The config option enable_v1_api is deprecated, is '
'not used, and will be removed in a future release.'))
if CONF.enable_v2_api:
LOG.warning(_LW('The config option enable_v2_api is deprecated, is '
'not used, and will be removed in a future release.'))
return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)

View File

@ -71,16 +71,6 @@ global_opts = [
cfg.StrOpt('data_topic',
default='manila-data',
help='The topic data nodes listen on.'),
cfg.BoolOpt('enable_v1_api',
default=False,
help=_('Deploy v1 of the Manila API. This option is '
'deprecated, is not used, and will be removed '
'in a future release.')),
cfg.BoolOpt('enable_v2_api',
default=False,
help=_('Deploy v2 of the Manila API. This option is '
'deprecated, is not used, and will be removed '
'in a future release.')),
cfg.BoolOpt('api_rate_limit',
default=True,
help='Whether to rate limit the API.'),