diff options
author | Pushkar Umaranikar <pushkar.umaranikar@intel.com> | 2016-01-30 00:44:12 +0000 |
---|---|---|
committer | Pushkar Umaranikar <pushkar.umaranikar@intel.com> | 2016-03-29 16:18:51 +0000 |
commit | 888be36d6959ea7e6ac216d1c3f435dcab153fd9 (patch) | |
tree | cdce4bee0c87a09ad55ebcaa28166d962c515b45 /nova/debugger.py | |
parent | ce018ecceab3e6101af7b1e1504c50716860cebd (diff) | |
download | nova-888be36d6959ea7e6ac216d1c3f435dcab153fd9.tar.gz |
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
Diffstat (limited to 'nova/debugger.py')
-rw-r--r-- | nova/debugger.py | 29 |
1 files changed, 2 insertions, 27 deletions
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: |