mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
allow no-op case when modifying deprecated credentials
This commit is contained in:
@@ -553,7 +553,9 @@ def _request(verb):
|
||||
response.data[key] = str(value)
|
||||
except Exception:
|
||||
response.data = data_copy
|
||||
assert response.status_code == expect
|
||||
assert response.status_code == expect, 'Response data: {}'.format(
|
||||
getattr(response, 'data', None)
|
||||
)
|
||||
if hasattr(response, 'render'):
|
||||
response.render()
|
||||
__SWAGGER_REQUESTS__.setdefault(request.path, {})[
|
||||
|
||||
Reference in New Issue
Block a user