summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-02-25 22:45:22 +0000
committerMark McLoughlin <markmc@redhat.com>2013-02-25 22:45:22 +0000
commitef933ad295e37c41b8add501fec9ac54ed62d387 (patch)
tree770b9849c7ca84eb21bba8f3b225a5c01aaa410f /bin
parent64a1e26a8acd422b7e216a2578d4b140fdf49c80 (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-xbin/oslo-rpc-zmq-receiver2
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: