From d29ee2c63e00c645c461a4cda1b7f01a7551f0c7 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 6 Mar 2019 18:40:57 +0000 Subject: [PATCH] Clarify json behavior with return_content key (#53316) The docs were not clear enough about what would happen if a JSON response is read. The actual behavior is that the `json` key is always present in such cases, regardless of this parameter, so by changing a few words, we make the docs clearer to the reader. --- lib/ansible/modules/net_tools/basics/uri.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/net_tools/basics/uri.py b/lib/ansible/modules/net_tools/basics/uri.py index a598b0168e..c538db84ce 100644 --- a/lib/ansible/modules/net_tools/basics/uri.py +++ b/lib/ansible/modules/net_tools/basics/uri.py @@ -70,8 +70,8 @@ options: description: - Whether or not to return the body of the response as a "content" key in the dictionary result. - - If the reported Content-type is "application/json", then the JSON is - additionally loaded into a key called C(json) in the dictionary results. + - Independently of this option, if the reported Content-type is "application/json", then the JSON is + always loaded into a key called C(json) in the dictionary results. type: bool default: no force_basic_auth: