Skip to content

Commit

Permalink
Resolve unittest error in rpc/impl_zmq
Browse files Browse the repository at this point in the history
Fixes bug #1010376

Remove ensure_ascii=True from dumps function.

Change-Id: Ifb2f12371d3262a5765e4434178621d401e8c610
  • Loading branch information
Zhongyue Luo committed Jun 8, 2012
1 parent 089300f commit 3006297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/rpc/impl_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _serialize(data):
Error if a developer passes us bad data.
"""
try:
return str(jsonutils.dumps(data, ensure_ascii=True))
return str(jsonutils.dumps(data))
except TypeError:
LOG.error(_("JSON serialization failed."))
raise
Expand Down

0 comments on commit 3006297

Please sign in to comment.