Merge "Move scheduler_topic into nova.scheduler.rpcapi"

This commit is contained in:
Jenkins
2013-01-09 07:58:16 +00:00
committed by Gerrit Code Review
3 changed files with 8 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ from nova import service
from nova import utils
CONF = cfg.CONF
CONF.import_opt('scheduler_topic', 'nova.config')
CONF.import_opt('scheduler_topic', 'nova.scheduler.rpcapi')
if __name__ == '__main__':
config.parse_args(sys.argv)

View File

@@ -22,8 +22,14 @@ from nova.openstack.common import cfg
from nova.openstack.common import jsonutils
import nova.openstack.common.rpc.proxy
rpcapi_opts = [
cfg.StrOpt('scheduler_topic',
default='scheduler',
help='the topic scheduler nodes listen on'),
]
CONF = cfg.CONF
CONF.import_opt('scheduler_topic', 'nova.config')
CONF.register_opts(rpcapi_opts)
class SchedulerAPI(nova.openstack.common.rpc.proxy.RpcProxy):

View File

@@ -25,7 +25,6 @@ from nova.scheduler import rpcapi as scheduler_rpcapi
from nova import test
CONF = cfg.CONF
CONF.import_opt('scheduler_topic', 'nova.config')
class SchedulerRpcAPITestCase(test.TestCase):