b056a514c8
For DELETE requests with no request body or "Content-Length" field, the expected return value for "hasattr(rest_state.request, 'json')" would be False and for "rest_state.request.json" would be an empty string. Instead, what occurs is that both "hasattr(rest_state.request, 'json')" and "rest_state.request.json" are throwing JSON decode exceptions in this case. This change adds tolerance for this exception. This is done because it is not known all the possible request conditions that may cause this exception to be thrown. Test Plan: PASS: Send a delete request through the CLI to subcloud-group and verify if any exception shows up dcmanager-api logs. Closes-Bug: 1999901 Change-Id: I58af3f4711d6caf840e188fb4690f2bde219d79a Signed-off-by: Karla Felix <karla.karolinenogueirafelix@windriver.com> |
||
---|---|---|
.. | ||
__init__.py | ||
config.py | ||
consts.py | ||
context.py | ||
exceptions.py | ||
i18n.py | ||
manager.py | ||
messaging.py | ||
prestage.py | ||
scheduler.py | ||
serializer.py | ||
utils.py | ||
version.py |