From 888be36d6959ea7e6ac216d1c3f435dcab153fd9 Mon Sep 17 00:00:00 2001 From: Pushkar Umaranikar Date: Sat, 30 Jan 2016 00:44:12 +0000 Subject: Config options: Centralize debugger options The config options of the "nova/debugger" got moved to the new central location "nova/conf/remote_debug.py" Implements: blueprint centralize-config-options-newton Change-Id: Ic0c858aac92c95dc20992c06218f9823e7e683e5 --- nova/debugger.py | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'nova/debugger.py') diff --git a/nova/debugger.py b/nova/debugger.py index e4d42768f6..de228f9555 100644 --- a/nova/debugger.py +++ b/nova/debugger.py @@ -26,34 +26,9 @@ def enabled(): '--remote_debug-port' in sys.argv) -def register_cli_opts(): - from oslo_config import cfg - - cli_opts = [ - cfg.StrOpt('host', - help='Debug host (IP or name) to connect. Note ' - 'that using the remote debug option changes how ' - 'Nova uses the eventlet library to support async IO. ' - 'This could result in failures that do not occur ' - 'under normal operation. Use at your own risk.'), - - cfg.IntOpt('port', - min=1, - max=65535, - help='Debug port to connect. Note ' - 'that using the remote debug option changes how ' - 'Nova uses the eventlet library to support async IO. ' - 'This could result in failures that do not occur ' - 'under normal operation. Use at your own risk.') - - ] - - cfg.CONF.register_cli_opts(cli_opts, 'remote_debug') - - def init(): - from oslo_config import cfg - CONF = cfg.CONF + import nova.conf + CONF = nova.conf.CONF # NOTE(markmc): gracefully handle the CLI options not being registered if 'remote_debug' not in CONF: -- cgit v1.2.1