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']