From e12edd9887a33c2bba43a2cb6ee0a335333333bf Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Thu, 23 Mar 2017 10:15:50 -0400 Subject: [PATCH] [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 --- oslo_messaging/_cmd/zmq_proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oslo_messaging/_cmd/zmq_proxy.py b/oslo_messaging/_cmd/zmq_proxy.py index 29bf34e03..c0b07c38f 100644 --- a/oslo_messaging/_cmd/zmq_proxy.py +++ b/oslo_messaging/_cmd/zmq_proxy.py @@ -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)