diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-02-25 22:45:22 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-02-25 22:45:22 +0000 |
| commit | ef933ad295e37c41b8add501fec9ac54ed62d387 (patch) | |
| tree | 770b9849c7ca84eb21bba8f3b225a5c01aaa410f /bin | |
| parent | 64a1e26a8acd422b7e216a2578d4b140fdf49c80 (diff) | |
zmq: parse receiver CLI opts in main
We shouldn't be parsing options from sys.argv() unless the main function
is being run.
Change-Id: Id6bae72b80ce35721f02323a7bf7713132a49ac9
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/oslo-rpc-zmq-receiver | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/oslo-rpc-zmq-receiver b/bin/oslo-rpc-zmq-receiver index 7478c8d..5ad6165 100755 --- a/bin/oslo-rpc-zmq-receiver +++ b/bin/oslo-rpc-zmq-receiver @@ -39,10 +39,10 @@ from openstack.common.rpc import impl_zmq CONF = cfg.CONF CONF.register_opts(rpc.rpc_opts) CONF.register_opts(impl_zmq.zmq_opts) -CONF(sys.argv[1:], project='oslo') def main(): + CONF(sys.argv[1:], project='oslo') logging.setup("oslo") with contextlib.closing(impl_zmq.ZmqProxy(CONF)) as reactor: |
