Merge "config options: centralize baseproxy cli options"
This commit is contained in:
commit
1b69a2e578
@ -39,7 +39,6 @@ import nova.cells.weights.ram_by_instance_type
|
||||
import nova.cells.weights.weight_offset
|
||||
import nova.cert.rpcapi
|
||||
import nova.cloudpipe.pipelib
|
||||
import nova.cmd.novnc
|
||||
import nova.cmd.novncproxy
|
||||
import nova.cmd.serialproxy
|
||||
import nova.cmd.spicehtml5proxy
|
||||
|
@ -20,22 +20,17 @@ for OpenStack Nova."""
|
||||
import os
|
||||
import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_reports import guru_meditation_report as gmr
|
||||
|
||||
import nova.conf
|
||||
from nova.conf import novnc
|
||||
from nova.console import websocketproxy
|
||||
from nova import version
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.import_opt('record', 'nova.cmd.novnc')
|
||||
CONF.import_opt('daemon', 'nova.cmd.novnc')
|
||||
CONF.import_opt('ssl_only', 'nova.cmd.novnc')
|
||||
CONF.import_opt('source_is_ipv6', 'nova.cmd.novnc')
|
||||
CONF.import_opt('cert', 'nova.cmd.novnc')
|
||||
CONF.import_opt('key', 'nova.cmd.novnc')
|
||||
CONF.import_opt('web', 'nova.cmd.novnc')
|
||||
CONF = nova.conf.CONF
|
||||
novnc.register_cli_opts(CONF)
|
||||
|
||||
|
||||
def exit_with_error(msg, errno=-1):
|
||||
|
@ -59,6 +59,7 @@ from nova.conf import mks
|
||||
from nova.conf import network
|
||||
from nova.conf import neutron
|
||||
# from nova.conf import notification
|
||||
from nova.conf import novnc
|
||||
# from nova.conf import osapi_v21
|
||||
from nova.conf import pci
|
||||
from nova.conf import rdp
|
||||
@ -124,6 +125,7 @@ keymgr.register_opts(CONF)
|
||||
network.register_opts(CONF)
|
||||
neutron.register_opts(CONF)
|
||||
# notification.register_opts(CONF)
|
||||
novnc.register_opts(CONF)
|
||||
# osapi_v21.register_opts(CONF)
|
||||
pci.register_opts(CONF)
|
||||
rdp.register_opts(CONF)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2012 OpenStack Foundation
|
||||
# Copyright (c) 2016 OpenStack Foundation
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
@ -15,7 +15,7 @@
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
opts = [
|
||||
novnc_opts = [
|
||||
cfg.StrOpt('record',
|
||||
help='This is the filename that will be used for storing '
|
||||
'websocket frames received and sent by a proxy service '
|
||||
@ -40,4 +40,14 @@ opts = [
|
||||
help='Run webserver on same port. Serve files from DIR.'),
|
||||
]
|
||||
|
||||
cfg.CONF.register_cli_opts(opts)
|
||||
|
||||
def register_opts(conf):
|
||||
conf.register_opts(novnc_opts)
|
||||
|
||||
|
||||
def register_cli_opts(conf):
|
||||
conf.register_cli_opts(novnc_opts)
|
||||
|
||||
|
||||
def list_opts():
|
||||
return {'DEFAULT': novnc_opts}
|
@ -14,7 +14,6 @@ import itertools
|
||||
|
||||
import nova.baserpc
|
||||
import nova.cloudpipe.pipelib
|
||||
import nova.cmd.novnc
|
||||
import nova.cmd.serialproxy
|
||||
import nova.cmd.spicehtml5proxy
|
||||
import nova.conductor.rpcapi
|
||||
@ -49,7 +48,6 @@ def list_opts():
|
||||
[nova.db.base.db_driver_opt],
|
||||
[nova.ipv6.api.ipv6_backend_opt],
|
||||
[nova.servicegroup.api.servicegroup_driver_opt],
|
||||
nova.cmd.novnc.opts,
|
||||
nova.console.manager.console_manager_opts,
|
||||
nova.console.rpcapi.rpcapi_opts,
|
||||
nova.console.xvp.xvp_opts,
|
||||
|
Loading…
Reference in New Issue
Block a user