summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2012-10-31 10:37:08 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2012-10-31 10:37:08 +0800
commit3e9880186ffed2105ee97e07f6d3b9c328fcff63 (patch)
treeb7ce89104e25a365704b2432d530159ec992ac33
parentae6f54dba69449eb1c231de162c12711bd2ab528 (diff)
downloadoslo-3e9880186ffed2105ee97e07f6d3b9c328fcff63.tar.gz
oslo-3e9880186ffed2105ee97e07f6d3b9c328fcff63.tar.xz
oslo-3e9880186ffed2105ee97e07f6d3b9c328fcff63.zip
Removes redundant string cast
Removes uuid.UUID.hex result string casting Change-Id: I4b0ed3ec1e4dc4a1ade149a539c5068ac154ebf7
-rw-r--r--openstack/common/rpc/impl_zmq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/impl_zmq.py b/openstack/common/rpc/impl_zmq.py
index aab664c..9365eb2 100644
--- a/openstack/common/rpc/impl_zmq.py
+++ b/openstack/common/rpc/impl_zmq.py
@@ -546,7 +546,7 @@ def _call(addr, context, msg_id, topic, msg, timeout=None):
timeout = timeout or CONF.rpc_response_timeout
# The msg_id is used to track replies.
- msg_id = str(uuid.uuid4().hex)
+ msg_id = uuid.uuid4().hex
# Replies always come into the reply service.
reply_topic = "zmq_replies.%s" % CONF.rpc_zmq_host