summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/impl_fake.py
diff options
context:
space:
mode:
authorAndrew Bogott <abogott@wikimedia.org>2012-07-03 00:16:36 -0500
committerAndrew Bogott <abogott@wikimedia.org>2012-07-03 00:48:52 -0500
commit85f6662f25e9d2696ec6086a1423c1b93a58cb0c (patch)
tree6ffafa3ec536a70aa76267dead8891f5406fc4dc /openstack/common/rpc/impl_fake.py
parent506486550480fb222a92447e1e8baca855d126aa (diff)
downloadoslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.tar.gz
oslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.tar.xz
oslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.zip
Switch common files to using jsonutils.
For blueprint use-common-jsonutils Pretty much just a search and replace. Change-Id: I66f63e7b0ff82a37d8a6b9acef94f4e10a45bf90
Diffstat (limited to 'openstack/common/rpc/impl_fake.py')
-rw-r--r--openstack/common/rpc/impl_fake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack/common/rpc/impl_fake.py b/openstack/common/rpc/impl_fake.py
index fba20c9..ff16208 100644
--- a/openstack/common/rpc/impl_fake.py
+++ b/openstack/common/rpc/impl_fake.py
@@ -18,11 +18,11 @@ queues. Casts will block, but this is very useful for tests.
"""
import inspect
-import json
import time
import eventlet
+from openstack.common import jsonutils
from openstack.common.rpc import common as rpc_common
CONSUMERS = {}
@@ -121,7 +121,7 @@ def create_connection(conf, new=True):
def check_serialize(msg):
"""Make sure a message intended for rpc can be serialized."""
- json.dumps(msg)
+ jsonutils.dumps(msg)
def multicall(conf, context, topic, msg, timeout=None):