summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Breit <kevin.breit@kevinbreit.net>2020-01-03 08:31:20 -0600
committerAlicia Cozine <879121+acozine@users.noreply.github.com>2020-01-03 08:31:20 -0600
commit633f64f780387de23aacdc10cadbf3fd71972a77 (patch)
tree92bbb086b54b0bd1f504ff2a93bf07a9838496d5
parent2f996fc6e222eeaf6c3391ad437dadf8ad642b36 (diff)
downloadansible-633f64f780387de23aacdc10cadbf3fd71972a77.tar.gz
Correct fetch_url error code documentation (#66061)
HttpError is passed for 400 and above, not only greater than 400. Change docs to `>=` instead of `>`.
-rw-r--r--lib/ansible/module_utils/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py
index a13e985abd..c896abdf74 100644
--- a/lib/ansible/module_utils/urls.py
+++ b/lib/ansible/module_utils/urls.py
@@ -1435,7 +1435,7 @@ def fetch_url(module, url, data=None, headers=None, method=None,
:kwarg ca_path: (optional) String of file system path to CA cert bundle to use
:returns: A tuple of (**response**, **info**). Use ``response.read()`` to read the data.
- The **info** contains the 'status' and other meta data. When a HttpError (status > 400)
+ The **info** contains the 'status' and other meta data. When a HttpError (status >= 400)
occurred then ``info['body']`` contains the error response data::
Example::