[zmq] pass a dummy TransportURL to register_opts
zmq_options.register_opts() requires a TransportURL in the parameter list. This patch creates an empty TransportURL and passes it since there is no actual URL available. Change-Id: I5954e430eedc5904594ee3be49d460de4b99d89a Closes-Bug: #1675425
This commit is contained in:
parent
2ee6a2a480
commit
e12edd9887
@ -19,6 +19,7 @@ from oslo_config import cfg
|
||||
from oslo_messaging._drivers.zmq_driver.proxy import zmq_proxy
|
||||
from oslo_messaging._drivers.zmq_driver import zmq_options
|
||||
from oslo_messaging._i18n import _LI
|
||||
from oslo_messaging.transport import TransportURL
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@ -29,7 +30,7 @@ def main():
|
||||
opt_group = cfg.OptGroup(name='zmq_proxy_opts',
|
||||
title='ZeroMQ proxy options')
|
||||
conf.register_opts(zmq_proxy.zmq_proxy_opts, group=opt_group)
|
||||
zmq_options.register_opts(conf)
|
||||
zmq_options.register_opts(conf, TransportURL.parse(conf))
|
||||
zmq_proxy.parse_command_line_args(conf)
|
||||
|
||||
reactor = zmq_proxy.ZmqProxy(conf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user