From faa3c54531e7a9f5030f74091c0dcc0b5ad7752e 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) --- lib/ansible/modules/extras/messaging/rabbitmq_parameter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_parameter.py b/lib/ansible/modules/extras/messaging/rabbitmq_parameter.py index 6be18bdce3d..60b9811a9cb 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_parameter.py +++ b/lib/ansible/modules/extras/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']