Browse Source

Fix versions api by using webob correctly

Currently getting the following error:
TypeError: You cannot set Response.body to a text object (use Response.text)

Closes-Bug: #1882156

Change-Id: Iba918ec671dabb2d0df72e071c6279176c63b312
(cherry picked from commit cd27f95c0b)
changes/99/740399/1
Sam Morrison 2 months ago
committed by zhurong
parent
commit
fa8332f48f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      murano/api/versions.py

+ 1
- 1
murano/api/versions.py View File

@@ -45,7 +45,7 @@ class Controller(object):
response = webob.Response(request=req,
status=http_client.MULTIPLE_CHOICES,
content_type='application/json')
response.body = jsonutils.dumps(dict(versions=version_objs))
response.text = jsonutils.dumps(dict(versions=version_objs))
return response

@webob.dec.wsgify(RequestClass=wsgi.Request)


Loading…
Cancel
Save