From e8391d69855b42d8108fd921f7d6375714494a0e Mon Sep 17 00:00:00 2001 From: Adam Romanek Date: Tue, 19 Apr 2016 17:20:51 +0200 Subject: [PATCH] Fixed #237 - improved embedded JSON support handling (#1530) --- messaging/rabbitmq_parameter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/messaging/rabbitmq_parameter.py b/messaging/rabbitmq_parameter.py index 6be18bdce3d..60b9811a9cb 100644 --- a/messaging/rabbitmq_parameter.py +++ b/messaging/rabbitmq_parameter.py @@ -126,6 +126,8 @@ def main(): component = module.params['component'] name = module.params['name'] value = module.params['value'] + if not isinstance(value, str): + value = json.dumps(value) vhost = module.params['vhost'] state = module.params['state'] node = module.params['node']