diff options
| author | Riccardo Pittau <elfosardo@gmail.com> | 2022-04-13 07:59:06 +0200 |
|---|---|---|
| committer | Riccardo Pittau <elfosardo@gmail.com> | 2022-04-14 10:47:06 +0000 |
| commit | 8111475eb0f315e0f92a8367a858c49f5fec5ff2 (patch) | |
| tree | 01f7bc00b0a527556b76f2e0ce1a2fc3932bc0d6 /ironic_python_agent/api | |
| parent | f9a7871ea0bca6aba7c6730fa773565e4875e50a (diff) | |
| download | ironic-python-agent-8111475eb0f315e0f92a8367a858c49f5fec5ff2.tar.gz | |
Use Werkzeug modern version
Request class from Werkzeug now includes json capability by default.
See [1] and [2] for more info.
[1] https://github.com/pallets/werkzeug/commit/2cd4fa9484b5d55284a86ac200df603552ba2300
[2] https://github.com/pallets/werkzeug/commit/7b52ecd8f3a67e19df32467a832761f4f0d97c8b
Change-Id: I3c74b26ef4aff07c371364203a5b39c658b552a7
Diffstat (limited to 'ironic_python_agent/api')
| -rw-r--r-- | ironic_python_agent/api/app.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ironic_python_agent/api/app.py b/ironic_python_agent/api/app.py index 93a53bad..47f5dd85 100644 --- a/ironic_python_agent/api/app.py +++ b/ironic_python_agent/api/app.py @@ -20,7 +20,6 @@ from oslo_service import wsgi import werkzeug from werkzeug import exceptions as http_exc from werkzeug import routing -from werkzeug.wrappers import json as http_json from ironic_python_agent import encoding @@ -30,7 +29,7 @@ _CUSTOM_MEDIA_TYPE = 'application/vnd.openstack.ironic-python-agent.v1+json' _DOCS_URL = 'https://docs.openstack.org/ironic-python-agent' -class Request(werkzeug.Request, http_json.JSONMixin): +class Request(werkzeug.Request): """Custom request class with JSON support.""" |
