diff --git a/muranoagent/common/messaging/mqclient.py b/muranoagent/common/messaging/mqclient.py index ee188b3f..e347182c 100644 --- a/muranoagent/common/messaging/mqclient.py +++ b/muranoagent/common/messaging/mqclient.py @@ -16,8 +16,8 @@ import random import ssl as ssl_module -import anyjson import eventlet +import json import kombu from oslo_service import sslutils @@ -138,7 +138,7 @@ class MqClient(object): producer.publish( exchange=str(exchange), routing_key=str(key), - body=anyjson.dumps(message.body), + body=json.dumps(message.body), message_id=str(message.id) ) diff --git a/requirements.txt b/requirements.txt index d46876c7..b644c4e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,6 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. pbr>=5.5.1 # Apache-2.0 -anyjson>=0.3.3 # BSD eventlet>=0.30.1 # MIT GitPython>=3.0.5 # BSD License (3 clause) kombu>=4.6.1 # BSD