From 4301bbcf8a3679ae7b7a10f4fa3a5527cb121cb5 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson <eandersson@blizzard.com> Date: Sun, 20 Oct 2019 21:11:51 -0700 Subject: [PATCH] Move pecan_debug into cfg section Change-Id: If3122f4719b1d52c5972e2d7869b521822de9422 --- designate/api/admin/app.py | 6 ------ designate/api/v2/app.py | 6 ------ designate/conf/api.py | 2 ++ 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/designate/api/admin/app.py b/designate/api/admin/app.py index 9881c5328..a687e2d59 100644 --- a/designate/api/admin/app.py +++ b/designate/api/admin/app.py @@ -20,12 +20,6 @@ from oslo_config import cfg from designate.api.v2 import patches -cfg.CONF.register_opts([ - cfg.BoolOpt('pecan_debug', default=False, - help='Pecan HTML Debug Interface'), -], group='service:api') - - def setup_app(pecan_config): config = dict(pecan_config) diff --git a/designate/api/v2/app.py b/designate/api/v2/app.py index b7ab9e28d..1596d4fec 100644 --- a/designate/api/v2/app.py +++ b/designate/api/v2/app.py @@ -20,12 +20,6 @@ from oslo_config import cfg from designate.api.v2 import patches -cfg.CONF.register_opts([ - cfg.BoolOpt('pecan_debug', default=False, - help='Pecan HTML Debug Interface'), -], group='service:api') - - def setup_app(pecan_config): config = dict(pecan_config) diff --git a/designate/conf/api.py b/designate/conf/api.py index f102037ca..ddff21dda 100644 --- a/designate/conf/api.py +++ b/designate/conf/api.py @@ -50,6 +50,8 @@ API_OPTS = [ "max_header_line may need to be increased when using " "large tokens (typically those generated by the " "Keystone v3 API with big service catalogs)."), + cfg.BoolOpt('pecan_debug', default=False, + help='Pecan HTML Debug Interface'), ] APT_V2_OPTS = [